regexident / apply_attr

A syntax extension providing higher-order attributes to Rust.
Mozilla Public License 2.0
16 stars 2 forks source link

compiling error #2

Open uccidibuti opened 4 years ago

uccidibuti commented 4 years ago

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 commented 4 years ago

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.