Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using #![cfg(feature = "stable_dag")] in lib.rs breaks lib export #25

Closed
highway900 opened this issue Nov 24, 2019 · 0 comments
Closed

Comments

@highway900
Copy link

new to rust, I have a very simple application that simply won't compile when I use daggy with #![cfg(feature = "stable_dag")] the stable graph feature enabled. It feels like I am doing something silly here. But if I remove the cfg and use Dag instead of StableDag everything works fine.

src/lib.rs is as so

#![cfg(feature = "stable_dag")]
extern crate daggy;

pub fn test() {
    println!("Test stable dag");
}
 --> src/bin/main.rs:1:5
  |
1 | use mylib::test;
  |     ^^^^^^^^^^^^ no `test` in the root

mylib is defined in my Cargo.toml like so

[lib]
name = "mylib"
path = "src/lib.rs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant