From 71d3c1d142d195c2efbad52b796cabd77b231265 Mon Sep 17 00:00:00 2001 From: David Chavez Date: Tue, 12 Dec 2023 15:39:07 +0100 Subject: [PATCH] chore(infra): Share some properties across workspace (#1039) --- Cargo.toml | 6 ++++++ backend-comparison/Cargo.toml | 8 ++++---- burn-autodiff/Cargo.toml | 8 ++++---- burn-candle/Cargo.toml | 8 ++++---- burn-common/Cargo.toml | 8 ++++---- burn-compute/Cargo.toml | 8 ++++---- burn-core/Cargo.toml | 8 ++++---- burn-dataset/Cargo.toml | 8 ++++---- burn-derive/Cargo.toml | 8 ++++---- burn-fusion/Cargo.toml | 8 ++++---- burn-import/Cargo.toml | 12 ++++++------ burn-import/onnx-tests/Cargo.toml | 6 +++--- burn-ndarray/Cargo.toml | 8 ++++---- burn-no-std-tests/Cargo.toml | 8 ++++---- burn-tch/Cargo.toml | 8 ++++---- burn-tensor-testgen/Cargo.toml | 8 ++++---- burn-tensor/Cargo.toml | 8 ++++---- burn-train/Cargo.toml | 14 +++++++------- burn-wgpu/Cargo.toml | 8 ++++---- burn/Cargo.toml | 8 ++++---- examples/custom-renderer/Cargo.toml | 6 +++--- examples/custom-training-loop/Cargo.toml | 6 +++--- examples/custom-wgpu-kernel/Cargo.toml | 6 +++--- examples/guide/Cargo.toml | 6 +++--- examples/image-classification-web/Cargo.toml | 6 +++--- examples/mnist-inference-web/Cargo.toml | 6 +++--- examples/mnist/Cargo.toml | 6 +++--- examples/named-tensor/Cargo.toml | 6 +++--- examples/onnx-inference/Cargo.toml | 6 +++--- examples/text-classification/Cargo.toml | 6 +++--- examples/text-generation/Cargo.toml | 6 +++--- 31 files changed, 119 insertions(+), 113 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 09e6fd4bba..35787279b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/backend-comparison/Cargo.toml b/backend-comparison/Cargo.toml index 5ae5fbc82b..f1228d7c16 100644 --- a/backend-comparison/Cargo.toml +++ b/backend-comparison/Cargo.toml @@ -2,12 +2,12 @@ authors = ["louisfd "] 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"] diff --git a/burn-autodiff/Cargo.toml b/burn-autodiff/Cargo.toml index 61db80ee1b..8057c70b7f 100644 --- a/burn-autodiff/Cargo.toml +++ b/burn-autodiff/Cargo.toml @@ -2,13 +2,13 @@ authors = ["nathanielsimard "] 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"] diff --git a/burn-candle/Cargo.toml b/burn-candle/Cargo.toml index f1196f3b27..29be44b9ed 100644 --- a/burn-candle/Cargo.toml +++ b/burn-candle/Cargo.toml @@ -2,13 +2,13 @@ authors = ["louisfd "] 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"] diff --git a/burn-common/Cargo.toml b/burn-common/Cargo.toml index f93b10ac48..595d0744f2 100644 --- a/burn-common/Cargo.toml +++ b/burn-common/Cargo.toml @@ -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"] diff --git a/burn-compute/Cargo.toml b/burn-compute/Cargo.toml index 0f89d7c95f..1d4c4936ee 100644 --- a/burn-compute/Cargo.toml +++ b/burn-compute/Cargo.toml @@ -2,13 +2,13 @@ authors = ["louisfd ", "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 = [ diff --git a/burn-core/Cargo.toml b/burn-core/Cargo.toml index 88c9ad53c7..f338e54ba6 100644 --- a/burn-core/Cargo.toml +++ b/burn-core/Cargo.toml @@ -2,13 +2,13 @@ authors = ["nathanielsimard "] 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 = [ diff --git a/burn-dataset/Cargo.toml b/burn-dataset/Cargo.toml index cdcb7b17f9..5062263c85 100644 --- a/burn-dataset/Cargo.toml +++ b/burn-dataset/Cargo.toml @@ -2,13 +2,13 @@ authors = ["nathanielsimard "] 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"] diff --git a/burn-derive/Cargo.toml b/burn-derive/Cargo.toml index d1b356d9fb..c8d5bccabc 100644 --- a/burn-derive/Cargo.toml +++ b/burn-derive/Cargo.toml @@ -2,13 +2,13 @@ authors = ["nathanielsimard "] 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 diff --git a/burn-fusion/Cargo.toml b/burn-fusion/Cargo.toml index 028b646469..4ec3f47946 100644 --- a/burn-fusion/Cargo.toml +++ b/burn-fusion/Cargo.toml @@ -2,13 +2,13 @@ authors = ["nathanielsimard "] 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"] diff --git a/burn-import/Cargo.toml b/burn-import/Cargo.toml index a1c88f1b94..fc334f107a 100644 --- a/burn-import/Cargo.toml +++ b/burn-import/Cargo.toml @@ -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"] @@ -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 } diff --git a/burn-import/onnx-tests/Cargo.toml b/burn-import/onnx-tests/Cargo.toml index 770158a2c0..ca48bd1adc 100644 --- a/burn-import/onnx-tests/Cargo.toml +++ b/burn-import/onnx-tests/Cargo.toml @@ -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" } diff --git a/burn-ndarray/Cargo.toml b/burn-ndarray/Cargo.toml index 1b74d7ab1c..22bddaeb4b 100644 --- a/burn-ndarray/Cargo.toml +++ b/burn-ndarray/Cargo.toml @@ -2,13 +2,13 @@ authors = ["nathanielsimard "] 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"] diff --git a/burn-no-std-tests/Cargo.toml b/burn-no-std-tests/Cargo.toml index f352dfbf3a..47fed8afc4 100644 --- a/burn-no-std-tests/Cargo.toml +++ b/burn-no-std-tests/Cargo.toml @@ -3,12 +3,12 @@ authors = [ "nathanielsimard ", "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] diff --git a/burn-tch/Cargo.toml b/burn-tch/Cargo.toml index 79dde5020b..b7c5f3a0f0 100644 --- a/burn-tch/Cargo.toml +++ b/burn-tch/Cargo.toml @@ -2,13 +2,13 @@ authors = ["nathanielsimard "] 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 = [] diff --git a/burn-tensor-testgen/Cargo.toml b/burn-tensor-testgen/Cargo.toml index f8fe1d459f..fb8c9882a4 100644 --- a/burn-tensor-testgen/Cargo.toml +++ b/burn-tensor-testgen/Cargo.toml @@ -1,12 +1,12 @@ [package] authors = ["nathanielsimard "] 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 diff --git a/burn-tensor/Cargo.toml b/burn-tensor/Cargo.toml index 716fe3e08d..d9582eec65 100644 --- a/burn-tensor/Cargo.toml +++ b/burn-tensor/Cargo.toml @@ -2,13 +2,13 @@ authors = ["nathanielsimard "] 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"] diff --git a/burn-train/Cargo.toml b/burn-train/Cargo.toml index 998a7bf593..6c06395a29 100644 --- a/burn-train/Cargo.toml +++ b/burn-train/Cargo.toml @@ -2,13 +2,13 @@ authors = ["nathanielsimard "] 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"] @@ -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 } diff --git a/burn-wgpu/Cargo.toml b/burn-wgpu/Cargo.toml index 548bf821a1..f3e6fb6882 100644 --- a/burn-wgpu/Cargo.toml +++ b/burn-wgpu/Cargo.toml @@ -2,13 +2,13 @@ authors = ["nathanielsimard "] 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"] diff --git a/burn/Cargo.toml b/burn/Cargo.toml index 4c94515fe9..24e4330931 100644 --- a/burn/Cargo.toml +++ b/burn/Cargo.toml @@ -2,13 +2,13 @@ authors = ["nathanielsimard "] 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] diff --git a/examples/custom-renderer/Cargo.toml b/examples/custom-renderer/Cargo.toml index 6920079189..ad0f67d197 100644 --- a/examples/custom-renderer/Cargo.toml +++ b/examples/custom-renderer/Cargo.toml @@ -1,11 +1,11 @@ [package] authors = ["nathanielsimard ", "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} diff --git a/examples/custom-training-loop/Cargo.toml b/examples/custom-training-loop/Cargo.toml index 7ce2f30bc6..695a1261e8 100644 --- a/examples/custom-training-loop/Cargo.toml +++ b/examples/custom-training-loop/Cargo.toml @@ -1,10 +1,10 @@ [package] authors = ["nathanielsimard "] -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"]} diff --git a/examples/custom-wgpu-kernel/Cargo.toml b/examples/custom-wgpu-kernel/Cargo.toml index 4651733b8f..2a79b8e65d 100644 --- a/examples/custom-wgpu-kernel/Cargo.toml +++ b/examples/custom-wgpu-kernel/Cargo.toml @@ -1,10 +1,10 @@ [package] authors = ["nathanielsimard "] -edition = "2021" -license = "MIT OR Apache-2.0" +edition.workspace = true +license.workspace = true name = "custom-wgpu-kernel" publish = false -version = "0.12.0" +version.workspace = true [dependencies] burn = {path = "../../burn", features=["autodiff", "wgpu"]} diff --git a/examples/guide/Cargo.toml b/examples/guide/Cargo.toml index 239b55eb0c..754642bb1a 100644 --- a/examples/guide/Cargo.toml +++ b/examples/guide/Cargo.toml @@ -1,10 +1,10 @@ [package] authors = ["nathanielsimard "] -edition = "2021" -license = "MIT OR Apache-2.0" +edition.workspace = true +license.workspace = true name = "guide" publish = false -version = "0.12.0" +version.workspace = true [features] default = ["burn/default"] diff --git a/examples/image-classification-web/Cargo.toml b/examples/image-classification-web/Cargo.toml index e4cf7dfff8..9b52075bae 100644 --- a/examples/image-classification-web/Cargo.toml +++ b/examples/image-classification-web/Cargo.toml @@ -1,10 +1,10 @@ [package] authors = ["Dilshod Tadjibaev (@antimora)"] -edition = "2021" -license = "MIT OR Apache-2.0" +edition.workspace = true +license.workspace = true name = "image-classification-web" publish = false -version = "0.12.0" +version.workspace = true [lib] crate-type = ["cdylib"] diff --git a/examples/mnist-inference-web/Cargo.toml b/examples/mnist-inference-web/Cargo.toml index 21b883b17a..f9834218f2 100644 --- a/examples/mnist-inference-web/Cargo.toml +++ b/examples/mnist-inference-web/Cargo.toml @@ -1,10 +1,10 @@ [package] authors = ["Dilshod Tadjibaev (@antimora)"] -edition = "2021" -license = "MIT OR Apache-2.0" +edition.workspace = true +license.workspace = true name = "mnist-inference-web" publish = false -version = "0.12.0" +version.workspace = true [lib] crate-type = ["cdylib"] diff --git a/examples/mnist/Cargo.toml b/examples/mnist/Cargo.toml index deaa090e41..48481d0368 100644 --- a/examples/mnist/Cargo.toml +++ b/examples/mnist/Cargo.toml @@ -1,10 +1,10 @@ [package] authors = ["nathanielsimard "] -edition = "2021" -license = "MIT OR Apache-2.0" +edition.workspace = true +license.workspace = true name = "mnist" publish = false -version = "0.12.0" +version.workspace = true [features] default = ["burn/dataset", "burn/sqlite-bundled"] diff --git a/examples/named-tensor/Cargo.toml b/examples/named-tensor/Cargo.toml index b12325a2e1..aab69939c2 100644 --- a/examples/named-tensor/Cargo.toml +++ b/examples/named-tensor/Cargo.toml @@ -1,10 +1,10 @@ [package] authors = ["nathanielsimard "] -edition = "2021" -license = "MIT OR Apache-2.0" +edition.workspace = true +license.workspace = true name = "named-tensor" publish = false -version = "0.12.0" +version.workspace = true [dependencies] burn = {path = "../../burn", features = ["experimental-named-tensor", "ndarray"]} diff --git a/examples/onnx-inference/Cargo.toml b/examples/onnx-inference/Cargo.toml index 1e55572eca..e003bbf1a2 100644 --- a/examples/onnx-inference/Cargo.toml +++ b/examples/onnx-inference/Cargo.toml @@ -1,10 +1,10 @@ [package] authors = ["Dilshod Tadjibaev (@antimora)"] -edition = "2021" -license = "MIT OR Apache-2.0" +edition.workspace = true +license.workspace = true name = "onnx-inference" publish = false -version = "0.12.0" +version.workspace = true [features] default = ["embedded-model"] diff --git a/examples/text-classification/Cargo.toml b/examples/text-classification/Cargo.toml index 6d003410f2..5641dbff8f 100644 --- a/examples/text-classification/Cargo.toml +++ b/examples/text-classification/Cargo.toml @@ -1,10 +1,10 @@ [package] authors = ["nathanielsimard "] -edition = "2021" -license = "MIT OR Apache-2.0" +edition.workspace = true +license.workspace = true name = "text-classification" publish = false -version = "0.12.0" +version.workspace = true [features] default = ["burn/dataset", "burn/sqlite-bundled"] diff --git a/examples/text-generation/Cargo.toml b/examples/text-generation/Cargo.toml index 39428f55ba..d1356c961b 100644 --- a/examples/text-generation/Cargo.toml +++ b/examples/text-generation/Cargo.toml @@ -1,10 +1,10 @@ [package] authors = ["nathanielsimard "] -edition = "2021" -license = "MIT OR Apache-2.0" +edition.workspace = true +license.workspace = true name = "text-generation" publish = false -version = "0.12.0" +version.workspace = true [features] default = ["burn/dataset", "burn/sqlite-bundled"]