ITADN
pdf-rs/pdf/Issues

Library will stop to work in future rust versions

#258Openqarmin 创建于 2025-07-20
Q
qarmincommented
``` cargo report future-incompatibilities --id 1 The following warnings were discovered during the build. These warnings are an indication that the packages contain code that will become an error in a future release of Rust. These warnings typically cover changes to close soundness problems, unintended or undocumented behavior, or critical problems that cannot be fixed in a backwards-compatible fashion, and are not expected to be in wide use. Each warning should contain a link for more information on what the warning means and how to resolve it. To solve this problem, you can try the following approaches: - If the issue is not solved by updating the dependencies, a fix has to be implemented by those dependencies. You can help with that by notifying the maintainers of this problem (e.g. by creating a bug report) or by proposing a fix to the maintainers (e.g. by creating a pull request): - pdf@0.9.0 - Repository: https://github.com/pdf-rs/pdf - Detailed warning command: `cargo report future-incompatibilities --id 1 --package pdf@0.9.0` - If waiting for an upstream fix is not an option, you can use the `[patch]` section in `Cargo.toml` to use your own version of the dependency. For more information, see: https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-patch-section The package `pdf v0.9.0` currently triggers the following future incompatibility lints: > warning: `Rect` is ambiguous > --> /home/rafal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pdf-0.9.0/src/build.rs:26:27 > | > 26 | pub media_box: Option<Rect>, > | ^^^^ ambiguous name > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095> > = note: ambiguous because of multiple glob imports of a name in the same module > note: `Rect` could refer to the struct imported here > --> /home/rafal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pdf-0.9.0/src/build.rs:16:5 > | > 16 | use crate::object::*; > | ^^^^^^^^^^^^^^^^ > = help: consider adding an explicit import of `Rect` to disambiguate > note: `Rect` could also refer to the struct imported here > --> /home/rafal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pdf-0.9.0/src/build.rs:17:5 > | > 17 | use crate::content::*; > | ^^^^^^^^^^^^^^^^^ > = help: consider adding an explicit import of `Rect` to disambiguate > > warning: `Rect` is ambiguous > --> /home/rafal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pdf-0.9.0/src/build.rs:27:26 > | > 27 | pub crop_box: Option<Rect>, > | ^^^^ ambiguous name > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095> > = note: ambiguous because of multiple glob imports of a name in the same module > note: `Rect` could refer to the struct imported here > --> /home/rafal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pdf-0.9.0/src/build.rs:16:5 > | > 16 | use crate::object::*; > | ^^^^^^^^^^^^^^^^ > = help: consider adding an explicit import of `Rect` to disambiguate > note: `Rect` could also refer to the struct imported here > --> /home/rafal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pdf-0.9.0/src/build.rs:17:5 > | > 17 | use crate::content::*; > | ^^^^^^^^^^^^^^^^^ > = help: consider adding an explicit import of `Rect` to disambiguate > > warning: `Rect` is ambiguous > --> /home/rafal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pdf-0.9.0/src/build.rs:28:26 > | > 28 | pub trim_box: Option<Rect>, > | ^^^^ ambiguous name > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095> > = note: ambiguous because of multiple glob imports of a name in the same module > note: `Rect` could refer to the struct imported here > --> /home/rafal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pdf-0.9.0/src/build.rs:16:5 > | > 16 | use crate::object::*; > | ^^^^^^^^^^^^^^^^ > = help: consider adding an explicit import of `Rect` to disambiguate > note: `Rect` could also refer to the struct imported here > --> /home/rafal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pdf-0.9.0/src/build.rs:17:5 > | > 17 | use crate::content::*; > | ^^^^^^^^^^^^^^^^^ > = help: consider adding an explicit import of `Rect` to disambiguate > > warning: `Rect` is ambiguous > --> /home/rafal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pdf-0.9.0/src/build.rs:85:31 > | > 85 | self.media_box = Some(Rect { > | ^^^^ ambiguous name > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095> > = note: ambiguous because of multiple glob imports of a name in the same module > note: `Rect` could refer to the struct imported here > --> /home/rafal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pdf-0.9.0/src/build.rs:16:5 > | > 16 | use crate::object::*; > | ^^^^^^^^^^^^^^^^ > = help: consider adding an explicit import of `Rect` to disambiguate > note: `Rect` could also refer to the struct imported here > --> /home/rafal/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pdf-0.9.0/src/build.rs:17:5 > | > 17 | use crate::content::*; > | ^^^^^^^^^^^^^^^^^ > = help: consider adding an explicit import of `Rect` to disambiguate > ```
0 条评论