You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When depending on async-nats = "0.34.0, if I set default-features = false, it fails to build with the following error:
error[E0560]: struct `jetstream::stream::Config` has no field named `compression`
--> /home/jaskij/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-nats-0.34.0/src/jetstream/context.rs:1048:17
|
1048 | compression: if config.compression {
| ^^^^^^^^^^^ `jetstream::stream::Config` does not have this field
|
= note: available fields are: `max_bytes`, `max_messages`, `max_messages_per_subject`, `discard_new_per_subject`, `retention` ... and 12 others
For more information about this error, try `rustc --explain E0560`.
error: could not compile `async-nats` (lib) due to 1 previous error
Expected behavior
The crate builds and works as intended.
Server and client version
from my Cargo.toml
async-nats = { version = "0.34.0", default-features = false }
Host environment
up-to-date Arch Linux running on x86-64, building with current Rust stable
Since your template doesn't have a field for comments: in your CI you should at least ensure every possible combination of feature flags builds, preferably test it to the extent possible. I have found cargo-hack extremely useful for this.
Observed behavior
When depending on
async-nats = "0.34.0
, if I setdefault-features = false
, it fails to build with the following error:Expected behavior
The crate builds and works as intended.
Server and client version
from my Cargo.toml
Host environment
up-to-date Arch Linux running on x86-64, building with current Rust stable
Steps to reproduce
Make a Rust crate depending on
async-nats
0.34.0 withdefault-features = false
. It fails to build.The text was updated successfully, but these errors were encountered: