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

compiling error #2

Open
uccidibuti opened this issue May 18, 2020 · 1 comment
Open

compiling error #2

uccidibuti opened this issue May 18, 2020 · 1 comment

Comments

@uccidibuti
Copy link

I want to use this crate for my rust library, I've added apply_attr dependency in my Cargo.toml but when i try to compile my library I recive this error:

$cargo build
   Compiling compiletest_rs v0.2.10
error[E0462]: found staticlib `rustc` instead of rlib or dylib
  --> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.2.10/src/lib.rs:19:1
   |
19 | extern crate rustc;
   | ^^^^^^^^^^^^^^^^^^^
   |
   = help: please recompile that crate using --crate-type lib
...

Is this a library bug or did I have something wrong inluding appy_attr dependency?

@regexident
Copy link
Owner

Hi @uccidibuti unfortunately the apply_attr crate depends on the syntax, which was the status-quo 3 years ago, yet has since been deprecated in favor of rustc_ast to which it would need to be migrated, to make it work with current versions of Rust.

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

2 participants