Issue when building "i18n-embed-fl" which uses find-crate
Hello,
I'm trying to package the "i18n-embed-fl" crate.
For this I run
./build.sh i18n-embed-fl librust-*deb
I already built all the dependencies including find-crate.
However it fails with this error:
--> /<<PKGBUILDDIR>>/debian/cargo_registry/i18n-embed-impl-0.8.0/src/lib.rs:
86:20
|
86 | let manifest = find_crate::Manifest::new().expect("Error reading
Cargo.toml");
| ^^^^^^^^^^ use of undeclared crate or module
`find_crate`
If I go to build/i18n-embed-fl and run cargo build, it doesn't fail.
Any idea please?
Regards
Fab
The last build commands:
Compiling find-crate v0.6.3
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=find_crate
CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/find-crate-0.6.3
CARGO_PKG_AUTHORS='Taiki Endo <te316e89@gmail.com>'
CARGO_PKG_DESCRIPTION='Find the crate name from the current Cargo.toml.
' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='Apache-2.0 OR MIT'
CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=find-crate
CARGO_PKG_REPOSITORY='https://github.com/taiki-e/find-crate'
CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.6.3 CARGO_PKG_VERSION_MAJOR=0
CARGO_PKG_VERSION_MINOR=6 CARGO_PKG_VERSION_PATCH=3 CARGO_PKG_VERSION_PRE=''
LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-
name find_crate --edition=2018 /<<PKGBUILDDIR>>/debian/cargo_registry/find-
crate-0.6.3/src/lib.rs --error-format=json --json=diagnostic-rendered-
ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link
-C embed-bitcode=no -C debuginfo=2 -C metadata=deaff8bf111759d5 -C extra-
filename=-deaff8bf111759d5 --out-dir /<<PKGBUILDDIR>>/target/debug/deps -L
dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern toml=/<<PKGBUILDDIR>>/
target/debug/deps/libtoml-e7e9761b570abfa9.rmeta --cap-lints warn`
warning: `toml` (lib) generated 1 warning
Compiling i18n-embed-impl v0.8.0
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=i18n_embed_impl
CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/i18n-embed-
impl-0.8.0 CARGO_PKG_AUTHORS='Luke Frisken <l.frisken@gmail.com>'
CARGO_PKG_DESCRIPTION='Macro implementations for i18n-embed'
CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE=''
CARGO_PKG_NAME=i18n-embed-impl CARGO_PKG_REPOSITORY='https://github.com/
kellpossible/cargo-i18n/tree/master/i18n-embed' CARGO_PKG_RUST_VERSION=''
CARGO_PKG_VERSION=0.8.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=8
CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/
<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name i18n_embed_impl
--edition=2018 /<<PKGBUILDDIR>>/debian/cargo_registry/i18n-embed-impl-0.8.0/
src/lib.rs --error-format=json --json=diagnostic-rendered-
ansi,artifacts,future-incompat --crate-type proc-macro --emit=dep-info,link -C
prefer-dynamic -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --
cfg 'feature="fluent-system"' --cfg 'feature="i18n-config"' --cfg
'feature="quote"' -C metadata=c7f57cde44523609 -C extra-filename=-
c7f57cde44523609 --out-dir /<<PKGBUILDDIR>>/target/debug/deps -L dependency=/
<<PKGBUILDDIR>>/target/debug/deps --extern i18n_config=/<<PKGBUILDDIR>>/
target/debug/deps/libi18n_config-063b1e9b185b3247.rlib --extern
proc_macro2=/<<PKGBUILDDIR>>/target/debug/deps/libproc_macro2-
aa8ae3518bc48afa.rlib --extern quote=/<<PKGBUILDDIR>>/target/debug/deps/
libquote-480a68ab7e77f79c.rlib --extern syn=/<<PKGBUILDDIR>>/target/debug/
deps/libsyn-702b23766bbdee85.rlib --extern proc_macro --cap-lints warn`
error[E0433]: failed to resolve: use of undeclared crate or module
`find_crate`
--> /<<PKGBUILDDIR>>/debian/cargo_registry/i18n-embed-impl-0.8.0/src/lib.rs:
86:20
|
86 | let manifest = find_crate::Manifest::new().expect("Error reading
Cargo.toml");
| ^^^^^^^^^^ use of undeclared crate or module
`find_crate`
For more information about this error, try `rustc --explain E0433`.
error: could not compile `i18n-embed-impl` due to previous error
Reply to: