diff --git a/Cargo.toml b/Cargo.toml index ed4dbb22b..ea24816ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,13 +2,22 @@ name = "wasm-bindgen" version = "0.1.0" authors = ["Alex Crichton "] +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" } diff --git a/crates/wasm-bindgen-cli-support/Cargo.toml b/crates/wasm-bindgen-cli-support/Cargo.toml index 731c60fea..52affa956 100644 --- a/crates/wasm-bindgen-cli-support/Cargo.toml +++ b/crates/wasm-bindgen-cli-support/Cargo.toml @@ -2,10 +2,17 @@ name = "wasm-bindgen-cli-support" version = "0.1.0" authors = ["Alex Crichton "] +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" diff --git a/crates/wasm-bindgen-cli-support/LICENSE-APACHE b/crates/wasm-bindgen-cli-support/LICENSE-APACHE new file mode 120000 index 000000000..1cd601d0a --- /dev/null +++ b/crates/wasm-bindgen-cli-support/LICENSE-APACHE @@ -0,0 +1 @@ +../../LICENSE-APACHE \ No newline at end of file diff --git a/crates/wasm-bindgen-cli-support/LICENSE-MIT b/crates/wasm-bindgen-cli-support/LICENSE-MIT new file mode 120000 index 000000000..b2cfbdc7b --- /dev/null +++ b/crates/wasm-bindgen-cli-support/LICENSE-MIT @@ -0,0 +1 @@ +../../LICENSE-MIT \ No newline at end of file diff --git a/crates/wasm-bindgen-cli/Cargo.toml b/crates/wasm-bindgen-cli/Cargo.toml index a5e4f1132..50bf2131c 100644 --- a/crates/wasm-bindgen-cli/Cargo.toml +++ b/crates/wasm-bindgen-cli/Cargo.toml @@ -2,14 +2,22 @@ name = "wasm-bindgen-cli" version = "0.1.0" authors = ["Alex Crichton "] +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" diff --git a/crates/wasm-bindgen-macro/Cargo.toml b/crates/wasm-bindgen-macro/Cargo.toml index 14e38d617..eca391937 100644 --- a/crates/wasm-bindgen-macro/Cargo.toml +++ b/crates/wasm-bindgen-macro/Cargo.toml @@ -2,6 +2,13 @@ name = "wasm-bindgen-macro" version = "0.1.0" authors = ["Alex Crichton "] +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 @@ -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" } diff --git a/crates/wasm-bindgen-macro/LICENSE-APACHE b/crates/wasm-bindgen-macro/LICENSE-APACHE new file mode 120000 index 000000000..1cd601d0a --- /dev/null +++ b/crates/wasm-bindgen-macro/LICENSE-APACHE @@ -0,0 +1 @@ +../../LICENSE-APACHE \ No newline at end of file diff --git a/crates/wasm-bindgen-macro/LICENSE-MIT b/crates/wasm-bindgen-macro/LICENSE-MIT new file mode 120000 index 000000000..b2cfbdc7b --- /dev/null +++ b/crates/wasm-bindgen-macro/LICENSE-MIT @@ -0,0 +1 @@ +../../LICENSE-MIT \ No newline at end of file diff --git a/crates/wasm-bindgen-shared/Cargo.toml b/crates/wasm-bindgen-shared/Cargo.toml index b51c84e00..456cb1037 100644 --- a/crates/wasm-bindgen-shared/Cargo.toml +++ b/crates/wasm-bindgen-shared/Cargo.toml @@ -1,7 +1,15 @@ [package] name = "wasm-bindgen-shared" -version = "0.1.0" +version = "0.1.1" authors = ["Alex Crichton "] +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" diff --git a/crates/wasm-bindgen-shared/LICENSE-APACHE b/crates/wasm-bindgen-shared/LICENSE-APACHE new file mode 120000 index 000000000..1cd601d0a --- /dev/null +++ b/crates/wasm-bindgen-shared/LICENSE-APACHE @@ -0,0 +1 @@ +../../LICENSE-APACHE \ No newline at end of file diff --git a/crates/wasm-bindgen-shared/LICENSE-MIT b/crates/wasm-bindgen-shared/LICENSE-MIT new file mode 120000 index 000000000..b2cfbdc7b --- /dev/null +++ b/crates/wasm-bindgen-shared/LICENSE-MIT @@ -0,0 +1 @@ +../../LICENSE-MIT \ No newline at end of file diff --git a/crates/wasm-bindgen-shared/build.rs b/crates/wasm-bindgen-shared/build.rs index a1761e390..14d4feca2 100644 --- a/crates/wasm-bindgen-shared/build.rs +++ b/crates/wasm-bindgen-shared/build.rs @@ -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]); + } } }