-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-organize crates similar to parry to get separate f32/f64 crates
I removed the doc test in lib.rs because I couldn't figure out how to have correct imports when the crate name is not a constant.
- Loading branch information
1 parent
18a56ab
commit 883ba47
Showing
8 changed files
with
108 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
[package] | ||
name = "vector-expr" | ||
authors = ["Duncan Fairbanks <duncan.fairbanks@foresightmining.com>"] | ||
version = "0.2.0" | ||
edition = "2021" | ||
description = "Vectorized expression parser and evaluator" | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/ForesightMiningSoftwareCorporation/vector_expr" | ||
readme = "README.md" | ||
[workspace] | ||
members = ["crates/vector-expr", "crates/vector-expr-f64"] | ||
resolver = "2" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[patch.crates-io] | ||
vector-expr = { path = "crates/vector-expr" } | ||
vector-expr-f64 = { path = "crates/vector-expr-f64" } | ||
|
||
[dependencies] | ||
[workspace.dependencies] | ||
once_cell = "1.19.0" | ||
pest = "2.7.5" | ||
pest_derive = "2.7.5" | ||
|
||
rayon = { version = "1", optional = true } | ||
rayon = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[package] | ||
name = "vector-expr-f64" | ||
authors = ["Duncan Fairbanks <duncan.fairbanks@foresightmining.com>"] | ||
version = "0.2.0" | ||
edition = "2021" | ||
description = "Vectorized expression parser and evaluator" | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/ForesightMiningSoftwareCorporation/vector_expr" | ||
readme = "../../README.md" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[lib] | ||
name = "vector_expr_f64" | ||
path = "../../src/lib.rs" | ||
|
||
[features] | ||
default = ["f64"] | ||
f64 = [] | ||
|
||
[dependencies] | ||
once_cell = { workspace = true } | ||
pest = { workspace = true } | ||
pest_derive = { workspace = true } | ||
rayon = { workspace = true, optional = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[package] | ||
name = "vector-expr" | ||
authors = ["Duncan Fairbanks <duncan.fairbanks@foresightmining.com>"] | ||
version = "0.2.0" | ||
edition = "2021" | ||
description = "Vectorized expression parser and evaluator" | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/ForesightMiningSoftwareCorporation/vector_expr" | ||
readme = "../../README.md" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[lib] | ||
name = "vector_expr" | ||
path = "../../src/lib.rs" | ||
|
||
[features] | ||
default = ["f32"] | ||
f32 = [] | ||
|
||
[dependencies] | ||
once_cell = { workspace = true } | ||
pest = { workspace = true } | ||
pest_derive = { workspace = true } | ||
rayon = { workspace = true, optional = true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters