From 35b0991f1c27be799ebae1fa8a22babe755fb930 Mon Sep 17 00:00:00 2001 From: Zhouqi Jiang Date: Thu, 31 Oct 2024 09:33:44 +0800 Subject: [PATCH] lib: use workspace level edition, license and repository settings for Cargo.toml Signed-off-by: Zhouqi Jiang --- Cargo.toml | 5 +++++ allwinner-hal/Cargo.toml | 8 ++++---- allwinner-rt/Cargo.toml | 6 +++--- examples/nezha-d1/Cargo.toml | 4 +++- examples/sdmmc/Cargo.toml | 6 ++++-- 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0781e70..cf2d138 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,8 @@ members = [ "examples/nezha-d1", "examples/sdmmc", ] + +[workspace.package] +edition = "2021" +license = "MulanPSL-2.0 OR MIT" +repository = "https://github.com/rustsbi/allwinner-hal" diff --git a/allwinner-hal/Cargo.toml b/allwinner-hal/Cargo.toml index dc44e8a..80b7748 100644 --- a/allwinner-hal/Cargo.toml +++ b/allwinner-hal/Cargo.toml @@ -1,15 +1,15 @@ [package] name = "allwinner-hal" -version = "0.0.0" -edition = "2021" description = "Allwinner SoC driver support" +version = "0.0.0" authors = [ "Luo Jia ", "Gao Chengbo ", ] -repository = "https://github.com/rustsbi/allwinner-hal" documentation = "https://docs.rs/allwinner-hal" -license = "MulanPSL-2.0 OR MIT" +edition.workspace = true +license.workspace = true +repository.workspace = true readme = "README.md" keywords = ["hal", "allwinner"] categories = ["os", "embedded", "hardware-support", "no-std"] diff --git a/allwinner-rt/Cargo.toml b/allwinner-rt/Cargo.toml index b54221d..6ffe0cf 100644 --- a/allwinner-rt/Cargo.toml +++ b/allwinner-rt/Cargo.toml @@ -2,14 +2,14 @@ name = "allwinner-rt" description = "ROM runtime for Allwinner D1 chip" version = "0.0.0" -edition = "2021" authors = [ "Luo Jia ", "Gao Chengbo ", ] -repository = "https://github.com/rustsbi/allwinner-rt" documentation = "https://docs.rs/allwinner-rt" -license = "MulanPSL-2.0 OR MIT" +edition.workspace = true +license.workspace = true +repository.workspace = true readme = "README.md" keywords = ["allwinner"] categories = ["embedded", "hardware-support", "no-std"] diff --git a/examples/nezha-d1/Cargo.toml b/examples/nezha-d1/Cargo.toml index fa9bd9f..d97c649 100644 --- a/examples/nezha-d1/Cargo.toml +++ b/examples/nezha-d1/Cargo.toml @@ -1,8 +1,10 @@ [package] name = "nezha-d1-example" version = "0.1.0" -edition = "2021" publish = false +edition.workspace = true +license.workspace = true +repository.workspace = true [dependencies] allwinner-hal = { path = "../../allwinner-hal" } diff --git a/examples/sdmmc/Cargo.toml b/examples/sdmmc/Cargo.toml index defb957..7a91b42 100644 --- a/examples/sdmmc/Cargo.toml +++ b/examples/sdmmc/Cargo.toml @@ -1,8 +1,10 @@ [package] name = "sdmmc-example" version = "0.1.0" -edition = "2021" publish = false +edition.workspace = true +license.workspace = true +repository.workspace = true [dependencies] allwinner-hal = { path = "../../allwinner-hal" } @@ -10,4 +12,4 @@ allwinner-rt = { path = "../../allwinner-rt" } panic-halt = "0.2.0" embedded-io = "0.6.1" embedded-sdmmc = "0.5.0" -embedded-time = "0.12.1" \ No newline at end of file +embedded-time = "0.12.1"