Skip to content

Commit

Permalink
chore(infra): Share some properties across workspace (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Dec 12, 2023
1 parent 3066196 commit 71d3c1d
Show file tree
Hide file tree
Showing 31 changed files with 119 additions and 113 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ members = [

exclude = ["examples/notebook"]

[workspace.package]
edition = "2021"
version = "0.12.0"
readme = "README.md"
license = "MIT OR Apache-2.0"

[workspace.dependencies]
async-trait = "0.1.74"
bytemuck = "1.14"
Expand Down
8 changes: 4 additions & 4 deletions backend-comparison/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
authors = ["louisfd <louisfd94@gmail.com>"]
categories = ["science"]
description = "This crate is used to time the execution of various computations, from operation kernels to complex model scenarios."
edition = "2021"
license = "MIT OR Apache-2.0"
edition.workspace = true
license.workspace = true
name = "backend-comparison"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/backend-comparison"
version = "0.12.0"
version.workspace = true

[features]
default = ["std"]
Expand Down
8 changes: 4 additions & 4 deletions burn-autodiff/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science"]
description = "Automatic differentiation backend for the Burn framework"
edition = "2021"
edition.workspace = true
keywords = ["deep-learning", "machine-learning", "data"]
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn-autodiff"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-autodiff"
version = "0.12.0"
version.workspace = true

[features]
default = ["export_tests"]
Expand Down
8 changes: 4 additions & 4 deletions burn-candle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["louisfd <louisfd94@gmail.com>"]
categories = ["science"]
description = "Candle backend for the Burn framework"
edition = "2021"
edition.workspace = true
keywords = ["deep-learning", "machine-learning", "data"]
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn-candle"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-candle"
version = "0.12.0"
version.workspace = true

[features]
default = ["std"]
Expand Down
8 changes: 4 additions & 4 deletions burn-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["Dilshod Tadjibaev (@antimora)"]
categories = []
description = "Common crate for the Burn framework"
edition = "2021"
edition.workspace = true
keywords = []
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn-common"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-common"
version = "0.12.0"
version.workspace = true

[features]
default = ["std"]
Expand Down
8 changes: 4 additions & 4 deletions burn-compute/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["louisfd <louisfd94@gmail.com>", "Nathaniel Simard"]
categories = ["science"]
description = "Compute crate that helps creating high performance async backends."
edition = "2021"
edition.workspace = true
keywords = ["deep-learning", "machine-learning", "data"]
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn-compute"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-compute"
version = "0.12.0"
version.workspace = true

[features]
default = [
Expand Down
8 changes: 4 additions & 4 deletions burn-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science", "no-std", "embedded", "wasm"]
description = "Flexible and Comprehensive Deep Learning Framework in Rust"
edition = "2021"
edition.workspace = true
keywords = ["deep-learning", "machine-learning", "tensor", "pytorch", "ndarray"]
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn-core"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-core"
version = "0.12.0"
version.workspace = true

[features]
default = [
Expand Down
8 changes: 4 additions & 4 deletions burn-dataset/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science"]
description = "Library with simple dataset APIs for creating ML data pipelines"
edition = "2021"
edition.workspace = true
keywords = ["deep-learning", "machine-learning", "data"]
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn-dataset"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-dataset"
version = "0.12.0"
version.workspace = true

[features]
default = ["sqlite-bundled"]
Expand Down
8 changes: 4 additions & 4 deletions burn-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science"]
description = "Derive crate for the Burn framework"
edition = "2021"
edition.workspace = true
keywords = []
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn-derive"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-derive"
version = "0.12.0"
version.workspace = true

[lib]
proc-macro = true
Expand Down
8 changes: 4 additions & 4 deletions burn-fusion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science"]
description = "Kernel fusion backend decorator for the Burn framework"
edition = "2021"
edition.workspace = true
keywords = ["deep-learning", "machine-learning", "data"]
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn-fusion"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-fusion"
version = "0.12.0"
version.workspace = true

[features]
default = ["std"]
Expand Down
12 changes: 6 additions & 6 deletions burn-import/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ authors = [
"Nathaniel Simard (@nathanielsimard)",
]
description = "Library for importing datamodels into the Burn framework"
edition = "2021"
license = "MIT OR Apache-2.0"
edition.workspace = true
license.workspace = true
name = "burn-import"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-import"

version = "0.12.0"
version.workspace = true

[features]
default = ["onnx"]
Expand All @@ -33,8 +33,8 @@ serde_json = { workspace = true, features = ["std"] }
strum = { workspace = true }
strum_macros = { workspace = true }
syn = { workspace = true, features = ["parsing"] }
tracing-subscriber.workspace = true
tracing-core.workspace = true
tracing-subscriber = { workspace = true }
tracing-core = { workspace = true }

[build-dependencies]
protobuf-codegen = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions burn-import/onnx-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "onnx-tests"
version = "0.12.0"
edition = "2021"
license = "MIT OR Apache-2.0"
version.workspace = true
edition.workspace = true
license.workspace = true

[dev-dependencies]
burn = { path = "../../burn" }
Expand Down
8 changes: 4 additions & 4 deletions burn-ndarray/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science", "no-std", "embedded", "wasm"]
description = "Ndarray backend for the Burn framework"
edition = "2021"
edition.workspace = true
keywords = ["deep-learning", "machine-learning", "data"]
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn-ndarray"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-ndarray"
version = "0.12.0"
version.workspace = true

[features]
default = ["std"]
Expand Down
8 changes: 4 additions & 4 deletions burn-no-std-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ authors = [
"nathanielsimard <nathaniel.simard.42@gmail.com>",
"Dilshod Tadjibaev (@antimora)",
]
edition = "2021"
license = "MIT OR Apache-2.0"
edition.workspace = true
license.workspace = true
name = "burn-no-std-tests"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-no-std-tests"
version = "0.12.0"
version.workspace = true

[dependencies]

Expand Down
8 changes: 4 additions & 4 deletions burn-tch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science"]
description = "Tch backend for the Burn framework"
edition = "2021"
edition.workspace = true
keywords = ["deep-learning", "machine-learning", "data"]
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn-tch"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-tch"
version = "0.12.0"
version.workspace = true

[features]
default = []
Expand Down
8 changes: 4 additions & 4 deletions burn-tensor-testgen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
description = "Test generation crate for burn-tensor"
edition = "2021"
license = "MIT OR Apache-2.0"
edition.workspace = true
license.workspace = true
name = "burn-tensor-testgen"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-tensor-testgen"
version = "0.12.0"
version.workspace = true

[lib]
proc-macro = true
Expand Down
8 changes: 4 additions & 4 deletions burn-tensor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science", "no-std", "embedded", "wasm"]
description = "Tensor library with user-friendly APIs and automatic differentiation support"
edition = "2021"
edition.workspace = true
keywords = ["deep-learning", "machine-learning", "tensor", "pytorch", "ndarray"]
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn-tensor"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-tensor"
version = "0.12.0"
version.workspace = true

[features]
default = ["std"]
Expand Down
14 changes: 7 additions & 7 deletions burn-train/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science"]
description = "Training crate for the Burn framework"
edition = "2021"
edition.workspace = true
keywords = ["deep-learning", "machine-learning", "tensor", "pytorch", "ndarray"]
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn-train"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-train"
version = "0.12.0"
version.workspace = true

[features]
default = ["metrics", "tui"]
Expand All @@ -19,9 +19,9 @@ tui = ["ratatui", "crossterm"]
burn-core = { path = "../burn-core", version = "0.12.0", features = ["dataset"] }

log = { workspace = true }
tracing-subscriber.workspace = true
tracing-appender.workspace = true
tracing-core.workspace = true
tracing-subscriber = { workspace = true }
tracing-appender = { workspace = true }
tracing-core = { workspace = true }

# Metrics
nvml-wrapper = { version = "0.9.0", optional = true }
Expand Down
8 changes: 4 additions & 4 deletions burn-wgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science"]
description = "WGPU backend for the Burn framework"
edition = "2021"
edition.workspace = true
keywords = ["deep-learning", "machine-learning", "gpu", "wgpu", "webgpu"]
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn-wgpu"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/burn-wgpu"
version = "0.12.0"
version.workspace = true

[features]
default = ["autotune", "std"]
Expand Down
8 changes: 4 additions & 4 deletions burn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science", "no-std", "embedded", "wasm"]
description = "Flexible and Comprehensive Deep Learning Framework in Rust"
edition = "2021"
edition.workspace = true
keywords = ["deep-learning", "machine-learning", "tensor", "pytorch", "ndarray"]
license = "MIT OR Apache-2.0"
license.workspace = true
name = "burn"
readme = "README.md"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn"
version = "0.12.0"
version.workspace = true
rust-version = "1.71"

[features]
Expand Down
6 changes: 3 additions & 3 deletions examples/custom-renderer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>", "Ankitects Pty Ltd"]
edition = "2021"
license = "MIT OR Apache-2.0"
edition.workspace = true
license.workspace = true
name = "custom-renderer"
description = "Example of how to render training progress outside of the tui"
publish = false
version = "0.12.0"
version.workspace = true

[dependencies]
burn = {path = "../../burn", features=["autodiff", "wgpu", "train", "dataset"], default-features=false}
Expand Down
6 changes: 3 additions & 3 deletions examples/custom-training-loop/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
edition = "2021"
license = "MIT OR Apache-2.0"
edition.workspace = true
license.workspace = true
name = "custom-training-loop"
publish = false
version = "0.12.0"
version.workspace = true

[dependencies]
burn = {path = "../../burn", features=["autodiff", "wgpu"]}
Expand Down
Loading

0 comments on commit 71d3c1d

Please sign in to comment.