SnowCait on Nostr: Yuki Kishimoto I'm trying to use rust-nostr with Cloudflare Workers, but it exceeds ...
Published at
2024-09-02 21:35:17Event JSON
{
"id": "176ed601b8eee9446e9b4237732f9942feaf6d78a2cd601043e659b0208cd7bc",
"pubkey": "83d52b4363d2d1bc5a098de7be67c120bfb7c0cee8efefd8eb6e42372af24689",
"created_at": 1725312917,
"kind": 1,
"tags": [
[
"p",
"68d81165918100b7da43fc28f7d1fc12554466e1115886b9e7bb326f65ec4272"
]
],
"content": "nostr:npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet\nI'm trying to use rust-nostr with Cloudflare Workers, but it exceeds the 1MiB limit.\nIs there a way to reduce the size of the bundled rust-nostr?\n(I'm new to Rust, so I'm sorry if this is a basic question.)\n\nTotal Upload: 2061.33 KiB / gzip: 1458.08 KiB\n\nWhen I comment it out,\nTotal Upload: 459.45 KiB / gzip: 195.30 KiB\n\nHere is the code.\nhttps://github.com/SnowCait/cloudflare-sandbox/tree/fc86a201006e51745e00e24238d6c049a66f7f8d/rust-relay\n\nHere is the Cloudflare Wokers document.\nhttps://developers.cloudflare.com/workers/languages/rust/",
"sig": "bc91d1e7a3f7762eea3548f0b37b9c1fbf4b2cf10daa462475b73f0bd8f930ea4772513d55f9ffb2cc8e6ac08628160ee3aed6de241e216e37b0c1e1ef30340d"
}