-
Notifications
You must be signed in to change notification settings - Fork 185
Closed
Description
I think #513 brings unexpected semver breaking changes in APIs. I found this when I tried to install a downstream binary dioxus-cli 0.7.2 which uses flate2-1.1.5 when locked but uses flate2-1.1.6 when unlocked.
Try run cargo install dioxus-cli and cargo install dioxus-cli --locked to see different results.
The former gives compile error
Updating crates.io index
Installing dioxus-cli v0.7.2
Updating crates.io index
Locking 1078 packages to latest compatible versions
Adding axum-extra v0.10.3 (available: v0.12.2)
Adding cargo_metadata v0.19.2 (available: v0.23.1)
Adding convert_case v0.8.0 (available: v0.10.0)
Adding fs-err v3.1.3 (available: v3.2.0)
Adding generic-array v0.14.7 (available: v0.14.9)
Adding home v0.5.11 (available: v0.5.12)
Adding krates v0.17.5 (available: v0.20.0)
Adding lightningcss v1.0.0-alpha.67 (available: v1.0.0-alpha.68)
Adding matchit v0.8.4 (available: v0.8.6)
Adding object v0.37.3 (available: v0.38.0)
Adding sentry-backtrace v0.42.0 (available: v0.46.0)
Adding serde v1.0.221 (available: v1.0.228)
Adding serde_core v1.0.221 (available: v1.0.228)
Adding serde_derive v1.0.221 (available: v1.0.228)
Adding serde_spanned v1.0.1 (available: v1.0.3)
Adding serde_with v3.14.1 (available: v3.16.1)
Adding serde_with_macros v3.14.1 (available: v3.16.1)
Adding swc_config v3.1.1 (available: v3.1.2)
Adding swc_ecma_parser v19.0.0 (available: v19.0.1)
Adding tauri-bundler v2.5.0 (available: v2.7.4)
Adding tauri-macos-sign v2.2.0 (available: v2.3.1)
Adding tauri-utils v2.5.0 (available: v2.8.1)
Adding throbber-widgets-tui v0.8.0 (available: v0.9.0)
Adding tokio-tungstenite v0.27.0 (available: v0.28.0)
Adding toml v0.8.23 (available: v0.9.8)
Adding toml v0.9.6 (available: v0.9.8)
Adding toml_datetime v0.7.1 (available: v0.7.3)
Adding toml_edit v0.22.27 (available: v0.23.7)
Adding toml_edit v0.23.5 (available: v0.23.7)
Adding unicode-width v0.2.0 (available: v0.2.2)
Adding walrus v0.23.3 (available: v0.24.4)
Adding wasm-encoder v0.235.0 (available: v0.243.0)
Adding wasmparser v0.235.0 (available: v0.243.0)
Compiling proc-macro2 v1.0.103
Compiling quote v1.0.42
Compiling unicode-ident v1.0.22
Compiling libc v0.2.178
Compiling cfg-if v1.0.4
Compiling serde_core v1.0.221
Compiling serde v1.0.221
Compiling memchr v2.7.6
Compiling version_check v0.9.5
Compiling portable-atomic v1.11.1
Compiling smallvec v1.15.1
Compiling log v0.4.29
Compiling find-msvc-tools v0.1.5
Compiling shlex v1.3.0
Compiling itoa v1.0.15
Compiling allocator-api2 v0.2.21
Compiling bitflags v2.10.0
Compiling equivalent v1.0.2
Compiling getrandom v0.3.4
Compiling pin-project-lite v0.2.16
Compiling autocfg v1.5.0
Compiling parking_lot_core v0.9.12
Compiling stable_deref_trait v1.2.1
Compiling zerocopy v0.8.31
Compiling scopeguard v1.2.0
Compiling foldhash v0.2.0
Compiling icu_normalizer_data v2.1.1
Compiling lock_api v0.4.14
Compiling icu_properties_data v2.1.1
Compiling hashbrown v0.16.1
Compiling libm v0.2.15
Compiling num-traits v0.2.19
Compiling pkg-config v0.3.32
Compiling thiserror v2.0.17
Compiling ryu v1.0.20
Compiling futures-core v0.3.31
Compiling percent-encoding v2.3.2
Compiling either v1.15.0
Compiling serde_json v1.0.145
Compiling subtle v2.6.1
Compiling typenum v1.19.0
Compiling generic-array v0.14.7
Compiling aho-corasick v1.1.4
Compiling syn v2.0.111
Compiling jobserver v0.1.34
Compiling cc v1.2.48
Compiling crunchy v0.2.4
Compiling indexmap v2.12.1
Compiling regex-syntax v0.8.8
Compiling synstructure v0.13.2
Compiling getrandom v0.2.16
Compiling litemap v0.8.1
Compiling futures-sink v0.3.31
Compiling regex-automata v0.4.13
Compiling tiny-keccak v2.0.2
Compiling writeable v0.6.2
Compiling once_cell v1.21.3
Compiling tracing-core v0.1.35
Compiling futures-channel v0.3.31
Compiling anyhow v1.0.100
Compiling signal-hook-registry v1.4.7
Compiling serde_derive v1.0.221
Compiling zerofrom-derive v0.1.6
Compiling yoke-derive v0.8.1
Compiling displaydoc v0.2.5
Compiling zerocopy-derive v0.8.31
Compiling zerovec-derive v0.11.2
Compiling zeroize_derive v1.4.2
Compiling parking_lot v0.12.5
Compiling tracing-attributes v0.1.31
Compiling zeroize v1.8.2
Compiling thiserror-impl v2.0.17
Compiling zerofrom v0.1.6
Compiling tracing v0.1.43
Compiling futures-macro v0.3.31
Compiling pin-utils v0.1.0
Compiling slab v0.4.11
Compiling futures-task v0.3.31
Compiling futures-io v0.3.31
Compiling foldhash v0.1.5
Compiling futures-util v0.3.31
Compiling mio v1.1.1
Compiling ahash v0.8.12
Compiling form_urlencoded v1.2.2
Compiling utf8_iter v1.0.4
Compiling const-oid v0.9.6
Compiling crossbeam-utils v0.8.21
Compiling rustversion v1.0.22
Compiling core-foundation-sys v0.8.7
Compiling tokio-macros v2.6.0
Compiling socket2 v0.6.1
Compiling const-random-macro v0.1.16
Compiling const-random v0.1.18
Compiling errno v0.3.14
Compiling rustc-hash v2.1.1
Compiling heck v0.5.0
Compiling simd-adler32 v0.3.7
Compiling ring v0.17.14
Compiling rustix v1.1.2
Compiling syn v1.0.109
Compiling crypto-common v0.1.7
Compiling block-buffer v0.10.4
Compiling digest v0.10.7
Compiling yoke v0.8.1
Compiling vcpkg v0.2.15
Compiling crc32fast v1.5.0
Compiling bytes v1.11.0
Compiling hashbrown v0.15.5
Compiling tokio v1.48.0
Compiling http v1.4.0
Compiling httparse v1.10.1
Compiling ppv-lite86 v0.2.21
Compiling thiserror v1.0.69
Compiling rayon-core v1.13.0
Compiling adler2 v2.0.1
Compiling miniz_oxide v0.8.9
Compiling num-integer v0.1.46
Compiling thiserror-impl v1.0.69
Compiling fnv v1.0.7
Compiling rand_core v0.6.4
Compiling siphasher v1.0.1
Compiling zlib-rs v0.5.3
Compiling untrusted v0.9.0
Compiling phf_shared v0.11.3
Compiling rand v0.8.5
Compiling libz-sys v1.1.23
Compiling static_assertions v1.1.0
Compiling base64 v0.22.1
Compiling ident_case v1.0.1
Compiling fastrand v2.3.0
Compiling strsim v0.11.1
Compiling phf_generator v0.11.3
Compiling cpufeatures v0.2.17
Compiling sha1_smol v1.0.1
Compiling byteorder v1.5.0
Compiling unicode-xid v0.2.6
Compiling num-bigint v0.4.6
Compiling hashbrown v0.14.5
Compiling uuid v1.19.0
Compiling regex v1.12.2
Compiling tower-service v0.3.3
Compiling dunce v1.0.5
Compiling sha1 v0.10.6
Compiling crossbeam-epoch v0.9.18
Compiling crossbeam-deque v0.8.6
Compiling httpdate v1.0.3
Compiling phf_macros v0.11.3
Compiling security-framework-sys v2.15.0
Compiling bstr v1.12.1
Compiling new_debug_unreachable v1.0.6
Compiling try-lock v0.2.5
Compiling want v0.3.1
Compiling swc_macros_common v1.0.1
Compiling phf v0.11.3
Compiling powerfmt v0.2.0
Compiling same-file v1.0.6
Compiling num-conv v0.1.0
Compiling time-core v0.1.6
Compiling walkdir v2.5.0
Compiling time-macros v0.2.24
Compiling deranged v0.5.5
Compiling zerovec v0.11.5
Compiling zerotrie v0.2.3
Compiling rustls-pki-types v1.13.1
Compiling core-foundation v0.9.4
Compiling arrayvec v0.7.6
Compiling mime v0.3.17
Compiling spin v0.9.8
Compiling time v0.3.44
Compiling iana-time-zone v0.1.64
Compiling semver v1.0.27
Compiling unicode-width v0.1.14
Compiling data-encoding v2.9.0
Compiling flate2 v1.1.6
Compiling termcolor v1.4.1
error[E0659]: `Deflate` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:6:33
|
6 | use crate::ffi::{self, Backend, Deflate, DeflateBackend, ErrorMessage, Inflate, InflateBackend};
| ^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `Deflate` could refer to the struct imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Deflate` to disambiguate
note: `Deflate` could also refer to the struct imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Deflate` to disambiguate
error[E0659]: `Inflate` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:6:72
|
6 | use crate::ffi::{self, Backend, Deflate, DeflateBackend, ErrorMessage, Inflate, InflateBackend};
| ^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `Inflate` could refer to the struct imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Inflate` to disambiguate
note: `Inflate` could also refer to the struct imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Inflate` to disambiguate
error[E0659]: `Deflate` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:23:12
|
23 | inner: Deflate,
| ^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `Deflate` could refer to the struct imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Deflate` to disambiguate
note: `Deflate` could also refer to the struct imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Deflate` to disambiguate
error[E0659]: `Inflate` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:40:12
|
40 | inner: Inflate,
| ^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `Inflate` could refer to the struct imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Inflate` to disambiguate
note: `Inflate` could also refer to the struct imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Inflate` to disambiguate
error[E0659]: `MZ_NO_FLUSH` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:52:17
|
52 | None = ffi::MZ_NO_FLUSH as isize,
| ^^^^^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `MZ_NO_FLUSH` could refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_NO_FLUSH` to disambiguate
note: `MZ_NO_FLUSH` could also refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_NO_FLUSH` to disambiguate
error[E0659]: `MZ_PARTIAL_FLUSH` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:62:20
|
62 | Partial = ffi::MZ_PARTIAL_FLUSH as isize,
| ^^^^^^^^^^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `MZ_PARTIAL_FLUSH` could refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_PARTIAL_FLUSH` to disambiguate
note: `MZ_PARTIAL_FLUSH` could also refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_PARTIAL_FLUSH` to disambiguate
error[E0659]: `MZ_SYNC_FLUSH` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:71:17
|
71 | Sync = ffi::MZ_SYNC_FLUSH as isize,
| ^^^^^^^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `MZ_SYNC_FLUSH` could refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_SYNC_FLUSH` to disambiguate
note: `MZ_SYNC_FLUSH` could also refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_SYNC_FLUSH` to disambiguate
error[E0659]: `MZ_FULL_FLUSH` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:78:17
|
78 | Full = ffi::MZ_FULL_FLUSH as isize,
| ^^^^^^^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `MZ_FULL_FLUSH` could refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_FULL_FLUSH` to disambiguate
note: `MZ_FULL_FLUSH` could also refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_FULL_FLUSH` to disambiguate
error[E0659]: `MZ_FINISH` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:84:19
|
84 | Finish = ffi::MZ_FINISH as isize,
| ^^^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `MZ_FINISH` could refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_FINISH` to disambiguate
note: `MZ_FINISH` could also refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_FINISH` to disambiguate
error[E0659]: `MZ_NO_FLUSH` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:96:17
|
96 | None = ffi::MZ_NO_FLUSH as isize,
| ^^^^^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `MZ_NO_FLUSH` could refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_NO_FLUSH` to disambiguate
note: `MZ_NO_FLUSH` could also refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_NO_FLUSH` to disambiguate
error[E0659]: `MZ_SYNC_FLUSH` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:105:17
|
105 | Sync = ffi::MZ_SYNC_FLUSH as isize,
| ^^^^^^^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `MZ_SYNC_FLUSH` could refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_SYNC_FLUSH` to disambiguate
note: `MZ_SYNC_FLUSH` could also refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_SYNC_FLUSH` to disambiguate
error[E0659]: `MZ_FINISH` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:111:19
|
111 | Finish = ffi::MZ_FINISH as isize,
| ^^^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `MZ_FINISH` could refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_FINISH` to disambiguate
note: `MZ_FINISH` could also refer to the constant imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `MZ_FINISH` to disambiguate
error[E0659]: `Deflate` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:200:20
|
200 | inner: Deflate::make(level, zlib_header, ffi::MZ_DEFAULT_WINDOW_BITS as u8),
| ^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `Deflate` could refer to the struct imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Deflate` to disambiguate
note: `Deflate` could also refer to the struct imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Deflate` to disambiguate
error[E0659]: `Inflate` is ambiguous
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:388:20
|
388 | inner: Inflate::make(zlib_header, ffi::MZ_DEFAULT_WINDOW_BITS as u8),
| ^^^^^^^ ambiguous name
|
= note: ambiguous because of multiple glob imports of a name in the same module
note: `Inflate` could refer to the struct imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:71:9
|
71 | pub use self::zlib_rs::*;
| ^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Inflate` to disambiguate
note: `Inflate` could also refer to the struct imported here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/mod.rs:76:9
|
76 | pub use self::miniz_oxide::*;
| ^^^^^^^^^^^^^^^^^^^^
= help: consider adding an explicit import of `Inflate` to disambiguate
error[E0308]: mismatched types
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/miniz_oxide.rs:95:45
|
95 | _ => mem::decompress_failed(ErrorMessage),
| ---------------------- ^^^^^^^^^^^^ expected `zlib_rs::ErrorMessage`, found `miniz_oxide::ErrorMessage`
| |
| arguments to this function are incorrect
|
= note: `miniz_oxide::ErrorMessage` and `zlib_rs::ErrorMessage` have similar names, but are actually distinct types
note: `miniz_oxide::ErrorMessage` is defined in module `crate::ffi::miniz_oxide` of the current crate
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/miniz_oxide.rs:21:1
|
21 | pub struct ErrorMessage;
| ^^^^^^^^^^^^^^^^^^^^^^^
note: `zlib_rs::ErrorMessage` is defined in module `crate::ffi::zlib_rs` of the current crate
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/zlib_rs.rs:45:1
|
45 | pub struct ErrorMessage(Option<&'static str>);
| ^^^^^^^^^^^^^^^^^^^^^^^
note: function defined here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:140:15
|
140 | pub(crate) fn decompress_failed<T>(msg: ErrorMessage) -> Result<T, DecompressError> {
| ^^^^^^^^^^^^^^^^^ -----------------
error[E0308]: mismatched types
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/miniz_oxide.rs:178:60
|
178 | MZStatus::NeedDict => mem::compress_failed(ErrorMessage),
| -------------------- ^^^^^^^^^^^^ expected `zlib_rs::ErrorMessage`, found `miniz_oxide::ErrorMessage`
| |
| arguments to this function are incorrect
|
= note: `miniz_oxide::ErrorMessage` and `zlib_rs::ErrorMessage` have similar names, but are actually distinct types
note: `miniz_oxide::ErrorMessage` is defined in module `crate::ffi::miniz_oxide` of the current crate
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/miniz_oxide.rs:21:1
|
21 | pub struct ErrorMessage;
| ^^^^^^^^^^^^^^^^^^^^^^^
note: `zlib_rs::ErrorMessage` is defined in module `crate::ffi::zlib_rs` of the current crate
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/zlib_rs.rs:45:1
|
45 | pub struct ErrorMessage(Option<&'static str>);
| ^^^^^^^^^^^^^^^^^^^^^^^
note: function defined here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:159:15
|
159 | pub(crate) fn compress_failed<T>(msg: ErrorMessage) -> Result<T, CompressError> {
| ^^^^^^^^^^^^^^^ -----------------
error[E0308]: mismatched types
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/miniz_oxide.rs:182:43
|
182 | _ => mem::compress_failed(ErrorMessage),
| -------------------- ^^^^^^^^^^^^ expected `zlib_rs::ErrorMessage`, found `miniz_oxide::ErrorMessage`
| |
| arguments to this function are incorrect
|
= note: `miniz_oxide::ErrorMessage` and `zlib_rs::ErrorMessage` have similar names, but are actually distinct types
note: `miniz_oxide::ErrorMessage` is defined in module `crate::ffi::miniz_oxide` of the current crate
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/miniz_oxide.rs:21:1
|
21 | pub struct ErrorMessage;
| ^^^^^^^^^^^^^^^^^^^^^^^
note: `zlib_rs::ErrorMessage` is defined in module `crate::ffi::zlib_rs` of the current crate
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/ffi/zlib_rs.rs:45:1
|
45 | pub struct ErrorMessage(Option<&'static str>);
| ^^^^^^^^^^^^^^^^^^^^^^^
note: function defined here
--> /Users/zhiqiu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/flate2-1.1.6/src/mem.rs:159:15
|
159 | pub(crate) fn compress_failed<T>(msg: ErrorMessage) -> Result<T, CompressError> {
| ^^^^^^^^^^^^^^^ -----------------
Some errors have detailed explanations: E0308, E0659.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `flate2` (lib) due to 17 previous errors; 8 warnings emitted
warning: build failed, waiting for other jobs to finish...
error: failed to compile `dioxus-cli v0.7.2`, intermediate artifacts can be found at `/var/folders/cg/6l5b95y14c18297sgdjvpcbc0000gn/T/cargo-installl47LSb`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.while the latter just compiles.
Related to DioxusLabs/dioxus#5057.
I wonder whether cargo-semver-checks can catch this, but at the meantime, I don't think you've run cargo-semver-checks when releasing a new version.
Xuanwo, mcronce, jiangzhe, NobodyXu, dest1yo and 3 more
Metadata
Metadata
Assignees
Labels
No labels