async-nats breaking changes

cargo

11 curated breaking changes across major versions of async-nats. Use this as a migration checklist before bumping dependencies.

11
changes
Breaking changes by transition
  • async-nats/v0.37.0 \u2192 async-nats/v0.38.0breaking

    Change Auth struct signature field to `Vec<u8>` by @mnordstr in https://github.com/nats-io/nats.rs/pull/1337

  • async-nats/v0.35.1 \u2192 async-nats/v0.36.0breaking

    Rework get_raw_message to return `StreamMessage` by @Jarema in https://github.com/nats-io/nats.rs/pull/1292

  • nats/v0.24.1 \u2192 async-nats/v0.34.0breaking

    Don't expose BoxFuture in public API by @oscarwcl in https://github.com/nats-io/nats.rs/pull/1167 This change simplifies lifetimes of Boxed Futures, by making them static. It should not affect most users, and if it does, removal of the lifetime should be a quick fix.

  • nats/v0.24.1 \u2192 async-nats/v0.34.0breaking

    Add check for max payload size when publishing messages by @Jarema in https://github.com/nats-io/nats.rs/pull/1211 The client was not checking if the message payload size was not exceeding the limits of the server it is connected to. While doing the fix, the error returned was changed into one consistent with others: a struct with enum of possible error variants under `kind()` method, of which one is `MaxPayloadExceeded`. This should not break users, as before there was no enum in the first plac

  • nats/v0.24.1 \u2192 async-nats/v0.34.0breaking

    Add stream name check to all stream management methods by @Jarema in https://github.com/nats-io/nats.rs/pull/1214 It added new enum variant to Consumer and Stream error kinds. Breaking for those who match those errors in exhaustive manner.

  • nats/v0.24.1 \u2192 async-nats/v0.34.0breaking

    Remove clone in message split method by @AbstractiveNord in https://github.com/nats-io/nats.rs/pull/1172 This changes to be a `mut self` from `self` while removing unnecessary clone.

  • async-nats/v0.29.0 \u2192 async-nats/v0.30.0breaking

    Update Service for parity with ADR by @Jarema in https://github.com/nats-io/nats.rs/pull/965

  • async-nats/v0.29.0 \u2192 async-nats/v0.30.0breaking

    Remove schema and api_url from Service API by @Jarema in https://github.com/nats-io/nats.rs/pull/972

  • async-nats/v0.29.0 \u2192 async-nats/v0.30.0breaking

    Add concrete error types to JetStream by @Jarema in https://github.com/nats-io/nats.rs/pull/874

  • async-nats/v0.29.0 \u2192 async-nats/v0.30.0breaking

    Add concrete errors to KV by @Jarema in https://github.com/nats-io/nats.rs/pull/1014

  • async-nats/v0.29.0 \u2192 async-nats/v0.30.0breaking

    Add concrete errors to Object Store by @Jarema in https://github.com/nats-io/nats.rs/pull/1015

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/cargo/async-nats
async-nats breaking changes — Cargo migration guide | DepScope