Sean1708 / rusty-cheddar

A Rust crate for automatically generating C header files from Rust source file.
http://sean1708.github.io/rusty-cheddar/
191 stars 25 forks source link

macOS Could not compile syntex_syntax v0.24.0 #56

Open piaojin opened 6 years ago

piaojin commented 6 years ago

Cargo.lock: [[package]] name = "rusty-cheddar" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "clap 1.5.6 (registry+https://github.com/rust-lang/crates.io-index)", "syntex_syntax 0.24.0 (registry+https://github.com/rust-lang/crates.io-index)", "toml 0.1.30 (registry+https://github.com/rust-lang/crates.io-index)", ]

when I cargo build and then I will get following error:

error: to use a constant of type codemap::Span in a pattern, codemap::Span must be annotated with #[derive(PartialEq, Eq)] --> /Users/zoey.weng/.cargo/registry/src/github.com-1ecc6299db9ec823/syntex_syntax-0.24.0/src/errors/emitter.rs:100:18 | 100 | Some(COMMAND_LINESP) => self.emit(FileLine(COMMAND_LINE_SP), msg, code, lvl), | ^^^^^^^^^^^^^^^ error: aborting due to previous error error: Could not compile syntex_syntax.

"syntex_syntax 0.59.1" is ok. But rusty-cheddar use "syntex_syntax 0.24.0".

Sean1708 commented 6 years ago

Hi @piaojin, as you can probably tell I don't really have the time to maintain this crate anymore unfortunately. I would strongly suggest looking into cbindgen instead.

xzn commented 6 years ago

Just to chime in that syntex_syntax v0.24.0 doesn't compile in windows-gnu either. cbindgen works though :)

Thanks for all the work so far.

piaojin commented 6 years ago

@Sean1708 Thank you for your suggestion. I will try cbindgen.