Skip to content

Commit

Permalink
add cargo workspace to root, remove extension-module flag from PyO3 d…
Browse files Browse the repository at this point in the history
  • Loading branch information
bminixhofer committed May 5, 2020
1 parent 69f06c7 commit ed278db
Show file tree
Hide file tree
Showing 8 changed files with 892 additions and 2,057 deletions.
930 changes: 881 additions & 49 deletions bindings/python/Cargo.lock → Cargo.lock

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[workspace]

members = [
"nnsplit",
"bindings/javascript",
"bindings/python"
]
2 changes: 0 additions & 2 deletions bindings/javascript/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/target
**/*.rs.bk
Cargo.lock
bin/
pkg/
wasm-pack.log
Expand Down
4 changes: 2 additions & 2 deletions bindings/javascript/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use nnsplit as core;
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

#[wasm_bindgen(inspectable)]
struct Split {
pub struct Split {
text: String,
parts: Vec<JsValue>,
}
Expand Down Expand Up @@ -55,7 +55,7 @@ impl<'a> From<core::Split<'a>> for Split {
}

#[wasm_bindgen]
struct NNSplit {
pub struct NNSplit {
inner: core::NNSplit,
}

Expand Down
5 changes: 1 addition & 4 deletions bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ crate-type = ["cdylib"]
[dependencies]
ndarray = "0.13"
numpy = "0.8"
pyo3 = "0.9.2"

[dependencies.nnsplit]
path = "../../nnsplit"
default-features = false
features = ["model-loader"]

[dependencies.pyo3]
version = "0.9.2"
features = ["extension-module"]
1 change: 0 additions & 1 deletion bindings/python/rust-toolchain

This file was deleted.

Loading

0 comments on commit ed278db

Please sign in to comment.