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
[Not sure if this is an issue indeed, or a small "feature request".]
As the subject says, trying to use the regex crate version 1.0.0, without the default features, and with the latest nightly (2018-05-18) fails with the following compile time error:
error[E0432]: unresolved import `Error`
--> /home/ciprian/.cargo/registry/src/github.51.al-1ecc6299db9ec823/regex-1.0.0/src/compile.rs:25:5
|
25 | use Error;
| ^^^^^ no `Error` in the root. Did you mean to use `error`?
error: aborting due to previous error
For more information about this error, try `rustc --explain E0432`.
The way I include the dependency is:
[dependencies.regex]
version = "~1.0.0"
optional = true
features = []
default-features = false
It seems that with the default-features = true and without any additional features enabled, it succeeds. On further investigation it seems that requiring (without default features) just use_std succeeds, which is in fact the default.
If the crate does require that one always use use_std, then perhaps a compile time error would be helpful, like for example:
#[ cfg ( not ( feature = "use_std" ) ) ]
compile_error! ("`use_std` feature is currently required to build this crate");
The text was updated successfully, but these errors were encountered:
Regarding the changelog, indeed it is listed there exactly as it happens... However I guess not many read the changelogs of all their dependencies... (Indeed this is an "user" error, but to the "user" defense, there are so many dependencies these days...) :)
cipriancraciun
changed the title
Using version 1.0.0, without default features, and with latest nightly (2018-05-18) fails with compile error
Using version 1.0.0, without default features, fails with compile error [edited: not an issue]
May 19, 2018
[Not sure if this is an issue indeed, or a small "feature request".]
As the subject says, trying to use the
regex
crate version1.0.0
, without the default features, and with the latest nightly (2018-05-18) fails with the following compile time error:The way I include the dependency is:
It seems that with the
default-features = true
and without any additional features enabled, it succeeds. On further investigation it seems that requiring (without default features) justuse_std
succeeds, which is in fact the default.If the crate does require that one always use
use_std
, then perhaps a compile time error would be helpful, like for example:The text was updated successfully, but these errors were encountered: