Skip to content

Commit

Permalink
Prep work for the 0.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Mar 6, 2018
1 parent 98030e0 commit f58c436
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 7 deletions.
11 changes: 10 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,22 @@
name = "wasm-bindgen"
version = "0.1.0"
authors = ["Alex Crichton <[email protected]>"]
license = "MIT/Apache-2.0"
readme = "README.md"
categories = ["wasm"]
repository = "https://github.com/alexcrichton/wasm-bindgen"
homepage = "https://github.com/alexcrichton/wasm-bindgen"
documentation = "https://docs.rs/wasm-bindgen"
description = """
Easy support for interacting between JS and Rust.
"""

[lib]
test = false
doctest = false

[dependencies]
wasm-bindgen-macro = { path = "crates/wasm-bindgen-macro" }
wasm-bindgen-macro = { path = "crates/wasm-bindgen-macro", version = "0.1" }

[dev-dependencies]
test-support = { path = "crates/test-support" }
Expand Down
9 changes: 8 additions & 1 deletion crates/wasm-bindgen-cli-support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@
name = "wasm-bindgen-cli-support"
version = "0.1.0"
authors = ["Alex Crichton <[email protected]>"]
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/wasm-bindgen"
homepage = "https://github.com/alexcrichton/wasm-bindgen"
documentation = "https://docs.rs/wasm-bindgen"
description = """
Shared support for the wasm-bindgen-cli package, an internal dependency
"""

[dependencies]
base64 = "0.9"
parity-wasm = "0.27"
serde_json = "1.0"
wasm-bindgen-shared = { path = "../wasm-bindgen-shared" }
wasm-bindgen-shared = { path = "../wasm-bindgen-shared", version = '0.1' }
wasm-gc-api = "0.1"
1 change: 1 addition & 0 deletions crates/wasm-bindgen-cli-support/LICENSE-APACHE
1 change: 1 addition & 0 deletions crates/wasm-bindgen-cli-support/LICENSE-MIT
12 changes: 10 additions & 2 deletions crates/wasm-bindgen-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@
name = "wasm-bindgen-cli"
version = "0.1.0"
authors = ["Alex Crichton <[email protected]>"]
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/wasm-bindgen"
homepage = "https://github.com/alexcrichton/wasm-bindgen"
documentation = "https://docs.rs/wasm-bindgen"
description = """
Command line interface of the `#[wasm_bindgen]` attribute and project. For more
information see https://github.com/alexcrichton/wasm-bindgen.
"""

[dependencies]
docopt = "0.8"
parity-wasm = "0.27"
serde = "1.0"
serde_derive = "1.0"
wasm-bindgen-cli-support = { path = "../wasm-bindgen-cli-support" }
wasm-bindgen-shared = { path = "../wasm-bindgen-shared" }
wasm-bindgen-cli-support = { path = "../wasm-bindgen-cli-support", version = "0.1" }
wasm-bindgen-shared = { path = "../wasm-bindgen-shared", version = "0.1" }

[[bin]]
name = "wasm-bindgen"
Expand Down
9 changes: 8 additions & 1 deletion crates/wasm-bindgen-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
name = "wasm-bindgen-macro"
version = "0.1.0"
authors = ["Alex Crichton <[email protected]>"]
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/wasm-bindgen"
homepage = "https://github.com/alexcrichton/wasm-bindgen"
documentation = "https://docs.rs/wasm-bindgen"
description = """
Definition of the `#[wasm_bindgen]` attribute, an internal dependency
"""

[lib]
proc-macro = true
Expand All @@ -11,4 +18,4 @@ syn = { version = '0.12', features = ['full'] }
quote = '0.4'
proc-macro2 = { version = "0.2", features = ["nightly"] }
serde_json = "1"
wasm-bindgen-shared = { path = "../wasm-bindgen-shared" }
wasm-bindgen-shared = { path = "../wasm-bindgen-shared", version = "0.1.0" }
1 change: 1 addition & 0 deletions crates/wasm-bindgen-macro/LICENSE-APACHE
1 change: 1 addition & 0 deletions crates/wasm-bindgen-macro/LICENSE-MIT
10 changes: 9 additions & 1 deletion crates/wasm-bindgen-shared/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
[package]
name = "wasm-bindgen-shared"
version = "0.1.0"
version = "0.1.1"
authors = ["Alex Crichton <[email protected]>"]
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/wasm-bindgen"
homepage = "https://github.com/alexcrichton/wasm-bindgen"
documentation = "https://docs.rs/wasm-bindgen"
description = """
Shared support between wasm-bindgen and wasm-bindgen cli, an internal
dependency.
"""

[dependencies]
serde_derive = "1"
Expand Down
1 change: 1 addition & 0 deletions crates/wasm-bindgen-shared/LICENSE-APACHE
1 change: 1 addition & 0 deletions crates/wasm-bindgen-shared/LICENSE-MIT
4 changes: 3 additions & 1 deletion crates/wasm-bindgen-shared/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ fn main() {
.map(|s| s.stdout)
.and_then(|s| String::from_utf8(s).ok());
if let Some(rev) = rev {
println!("cargo:rustc-env=WBG_VERSION={}", &rev[..9]);
if rev.len() >= 9 {
println!("cargo:rustc-env=WBG_VERSION={}", &rev[..9]);
}
}
}

0 comments on commit f58c436

Please sign in to comment.