Skip to content

Rewrite the core of the binding generator. #37

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

Merged
merged 2 commits into from
Sep 21, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
[package]
authors = ["Jyun-Yan You <[email protected]>"]
authors = [
"Jyun-Yan You <[email protected]>",
"Emilio Cobos Álvarez <[email protected]>",
"The Servo project developers",
]
build = "build.rs"
description = "A binding generator for Rust"
homepage = "https://github.com/crabtw/rust-bindgen"
homepage = "https://github.com/servo/rust-bindgen"
keywords = ["bindings", "ffi", "code-generation"]
license = "BSD-3-Clause"
name = "bindgen"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably should bump to 0.17.0 or even 1.0.0

readme = "README.md"
repository = "https://github.com/crabtw/rust-bindgen"
version = "0.16.0"
repository = "https://github.com/servo/rust-bindgen"
version = "0.17.0"

[[bin]]
doc = false
Expand All @@ -19,23 +23,24 @@ quasi_codegen = "0.15"

[dependencies]
clang-sys = "0.8.0"
docopt = "0.6.82"
libc = "0.2.*"
log = "0.3.*"
libc = "0.2"
log = "0.3"
env_logger = "0.3"
rustc-serialize = "0.3.19"
syntex_syntax = "0.38"
syntex_syntax = "0.43"
regex = "0.1"

[dependencies.aster]
features = ["with-syntex"]
version = "0.21.1"
version = "0.26"

[dependencies.clippy]
optional = true
version = "*"

[dependencies.quasi]
features = ["with-syntex"]
version = "0.15"
version = "0.19"

[features]
llvm_stable = []
Expand Down
7 changes: 4 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ mod codegen {

pub fn main() {
let out_dir = env::var_os("OUT_DIR").unwrap();
let src = Path::new("src/gen.rs");
let dst = Path::new(&out_dir).join("gen.rs");
let src = Path::new("src/codegen/mod.rs");
let dst = Path::new(&out_dir).join("codegen.rs");

quasi_codegen::expand(&src, &dst).unwrap();
println!("cargo:rerun-if-changed=src/gen.rs");
println!("cargo:rerun-if-changed=src/codegen/mod.rs");
println!("cargo:rerun-if-changed=src/codegen/helpers.rs");
}
}

Expand Down
Loading