Why Nostr? What is Njump?
2024-09-02 23:35:17

SnowCait on Nostr: Yuki Kishimoto I'm trying to use rust-nostr with Cloudflare Workers, but it exceeds ...


I'm trying to use rust-nostr with Cloudflare Workers, but it exceeds the 1MiB limit.
Is there a way to reduce the size of the bundled rust-nostr?
(I'm new to Rust, so I'm sorry if this is a basic question.)

Total Upload: 2061.33 KiB / gzip: 1458.08 KiB

When I comment it out,
Total Upload: 459.45 KiB / gzip: 195.30 KiB

Here is the code.
https://github.com/SnowCait/cloudflare-sandbox/tree/fc86a201006e51745e00e24238d6c049a66f7f8d/rust-relay

Here is the Cloudflare Wokers document.
https://developers.cloudflare.com/workers/languages/rust/
Author Public Key
npub1s02jksmr6tgmcksf3hnmue7pyzlm0sxwarh7lk8tdeprw2hjg6ysp7fxtw