Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Rust crate nostr to 0.38.0 #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 1, 2025

This PR contains the following updates:

Package Type Update Change
nostr dependencies minor 0.37.0 -> 0.38.0

Release Notes

rust-nostr/nostr (nostr)

v0.38.0

Compare Source

Summary

Full NIP42 support for SDK and relay builder, negentropy support and read/write policy plugins for relay builder,
NIP35 support, better logs and docs, performance improvements, bugs fix and more!

Breaking changes
  • nostr: update FromBech32::from_bech32 method signature ([Yuki Kishimoto])
  • nostr: update NostrURI::from_nostr_uri method signature ([Yuki Kishimoto])
  • nostr: remove generics from parsing methods in key module ([Yuki Kishimoto])
  • nostr: remove generics from EventId parsing methods ([Yuki Kishimoto])
  • nostr: remove generic from RelayUrl::parse ([Yuki Kishimoto])
  • nostr: refactor MachineReadablePrefix::parse method to use &str directly ([Yuki Kishimoto])
  • nostr: update RelayMessage::Notice variant ([Yuki Kishimoto])
  • database: reduce default in-memory database limit to 35_000 ([Yuki Kishimoto])
  • database: update NostrEventsDatabase::save_event method signature ([Yuki Kishimoto])
  • pool: replace Option<String> with String in Output::failed ([Yuki Kishimoto])
  • sdk: update fetch_* and stream_* methods signature ([Yuki Kishimoto])
  • bindings: remove redundant parsing methods from EventId, Coordinate, PublicKey and SecretKey ([Yuki Kishimoto])
Changed
  • Bump async-utility to 0.3, async-wsocket to 0.12 and atomic-destructor to 0.3 ([Yuki Kishimoto])
  • nostr: remove self-tagging when building events ([Yuki Kishimoto])
  • nostr: don't set root tags when the root is null ([Yuki Kishimoto])
  • nostr: update RelayMessage::NegErr variant ([Yuki Kishimoto])
  • nostr: accept either EventBuilder or UnsignedEvent as rumor in NIP59 functions ([Yuki Kishimoto] and [arkanoider])
  • nostr: require fmt::Debug, Send and Sync for NostrSigner ([Yuki Kishimoto])
  • nostr: enable support for Tags::indexes in no_std ([Yuki Kishimoto])
  • nostr: improve RelayMessage docs ([Yuki Kishimoto])
  • nostr: include public key of root and parent author in EventBuilder::comment ([Yuki Kishimoto])
  • nostr: dedup tags in EventBuilder::text_note_reply and EventBuilder::comment ([Yuki Kishimoto])
  • nostr: don't use reply event as root e tag i no root is set in EventBuilder::text_note_reply ([Yuki Kishimoto])
  • database: add manual trait implementations for BTreeCappedSet ([Yuki Kishimoto])
  • database: replace LRU with custom memory cache for IDs tracking ([Yuki Kishimoto])
  • lmdb: use async-utility to spawn blocking tasks ([Yuki Kishimoto])
  • ndb: bump nostr-ndb to 0.5 ([Yuki Kishimoto])
  • pool: add PingTracker and improve relay ping management ([Yuki Kishimoto])
  • pool: cleanup relay Error variants ([Yuki Kishimoto])
  • pool: acquire service watcher receiver outside the auto-connect loop ([Yuki Kishimoto])
  • pool: decrease MAX_RETRY_INTERVAL to 60 secs ([Yuki Kishimoto])
  • pool: rework retry interval calculation ([Yuki Kishimoto])
  • pool: improve shutdown docs ([dluvian])
  • pool: rename FilterOptions to ReqExitPolicy ([Yuki Kishimoto])
  • pool: log WebSocket connection error only if different from the last one ([Yuki Kishimoto])
  • pool: reduce atomic operations when cloning ([Yuki Kishimoto])
  • sdk: refactor POW difficulty management ([Yuki Kishimoto])
  • connect: require fmt::Debug, Send and Sync for AuthUrlHandler ([Yuki Kishimoto])
  • connect: improve secret matching for NostrConnectRemoteSigner ([Yuki Kishimoto])
  • connect: support both NIP04 and NIP44 for message decryption ([erskingardner])
  • zapper: bump webln to 0.4 ([Yuki Kishimoto])
  • zapper: require fmt::Debug, Send and Sync for NostrZapper ([Yuki Kishimoto])
  • bindings: refactor SendEventOutput and SubscribeOutput ([Yuki Kishimoto])
Added
  • nostr: add Tags::challenge method ([Yuki Kishimoto])
  • nostr: add RelayUrl::is_local_addr ([Yuki Kishimoto])
  • nostr: add TagKind::k constructor ([Yuki Kishimoto])
  • nostr: impl IntoIterator for Tag ([Yuki Kishimoto])
  • nostr: add NIP35 support ([1wErt3r])
  • nostr: add Kind::is_addressable and ADDRESSABLE_RANGE ([Yuki Kishimoto])
  • database: impl PartialEq and Eq for Events ([Yuki Kishimoto])
  • database: add SaveEventStatus enum ([Yuki Kishimoto])
  • pool: add ReceiverStream ([Yuki Kishimoto])
  • Add SubscribeAutoCloseOptions::idle_timeout ([Yuki Kishimoto])
  • sdk: automatically resend event after NIP-42 authentication ([Yuki Kishimoto])
  • sdk: add Connection::embedded_tor_with_path ([Yuki Kishimoto])
  • connect: add NostrConnect::status ([Yuki Kishimoto])
  • connect: add pubkey in NostrConnectSignerActions::approve ([Yuki Kishimoto])
  • relay-builder: add NIP42 support ([Yuki Kishimoto])
  • relay-builder: add negentropy support ([Yuki Kishimoto])
  • relay-builder: add read/write policy plugins ([v0l])
Fixed
  • nostr: remove redundant NIP10 tags from EventBuilder::text_note_reply ([Yuki Kishimoto])
  • sdk: fix NIP42 authentication for auto-closing REQ ([Yuki Kishimoto])
  • sdk: fix min POW is not updated to already existing relays ([Yuki Kishimoto])
  • bindings: allow passing empty string as relay url without return an error ([Yuki Kishimoto])
  • ffi: fix UniFFI checksum mismatch issue ([Yuki Kishimoto])
  • flutter: fix default is reserved in dart ([J. Azad EMERY])
Removed
  • nostr: remove NegentropyErrorCode ([Yuki Kishimoto])
  • database: remove lru, thiserror and tracing deps ([Yuki Kishimoto])
  • lmdb: remove thiserror and tracing deps ([Yuki Kishimoto])
  • indexeddb: remove thiserror and tracing deps ([Yuki Kishimoto])
  • zapper: remove thiserror dep ([Yuki Kishimoto])
  • pool: remove thiserror and tokio-stream deps ([Yuki Kishimoto])
  • pool: remove minimum interval constraint in RelayOptions::retry_interval
  • sdk: remove thiserror and nwc deps ([Yuki Kishimoto])
  • nwc: remove thiserror dep and unnecessary Error::Zapper variant ([Yuki Kishimoto])
  • ffi: remove MockRelay ([Yuki Kishimoto])
  • ffi: remove RawEvent and RawEventRecord ([Yuki Kishimoto])
  • ffi: remove NostrConnectRemoteSigner ([Yuki Kishimoto])
  • bindings: remove RelayPool ([Yuki Kishimoto])
Deprecated
  • nostr: deprecate PARAMETERIZED_REPLACEABLE_RANGE, Kind::ParameterizedReplaceable and Kind::is_parameterized_replaceable ([Yuki Kishimoto])
  • nostr: deprecate JobRequest, JobResult, Regular, Replaceable and Ephemeral kind variants ([Yuki Kishimoto])
  • pool: deprecated batch event methods ([Yuki Kishimoto])
  • pool: deprecate FilterOptions ([Yuki Kishimoto])
  • sdk: deprecate timeout option ([Yuki Kishimoto])
  • sdk: deprecate Options::difficulty and Client::update_difficulty ([Yuki Kishimoto])

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Jan 1, 2025

⚠️ Artifact update problem

Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path crates/Cargo.toml --workspace
error: failed to parse manifest at `/tmp/renovate/repos/github/AreaLayer/rust-l402/crates/Cargo.toml`

Caused by:
  no targets specified in the manifest
  either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path example/Cargo.toml --workspace
error: failed to parse manifest at `/tmp/renovate/repos/github/AreaLayer/rust-l402/example/Cargo.toml`

Caused by:
  no targets specified in the manifest
  either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path nostr/Cargo.toml --workspace
error: failed to parse manifest at `/tmp/renovate/repos/github/AreaLayer/rust-l402/nostr/Cargo.toml`

Caused by:
  no targets specified in the manifest
  either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants