Skip to content

Commit

Permalink
lib: use workspace level edition, license and repository settings for…
Browse files Browse the repository at this point in the history
… Cargo.toml

Signed-off-by: Zhouqi Jiang <luojia@hust.edu.cn>
  • Loading branch information
luojia65 committed Oct 31, 2024
1 parent 1421703 commit 35b0991
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
8 changes: 4 additions & 4 deletions allwinner-hal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <luojia@hust.edu.cn>",
"Gao Chengbo <electricpower_gao@163.com>",
]
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"]
Expand Down
6 changes: 3 additions & 3 deletions allwinner-rt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
name = "allwinner-rt"
description = "ROM runtime for Allwinner D1 chip"
version = "0.0.0"
edition = "2021"
authors = [
"Luo Jia <luojia@hust.edu.cn>",
"Gao Chengbo <electricpower_gao@163.com>",
]
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"]
Expand Down
4 changes: 3 additions & 1 deletion examples/nezha-d1/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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" }
Expand Down
6 changes: 4 additions & 2 deletions examples/sdmmc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
[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" }
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"
embedded-time = "0.12.1"

0 comments on commit 35b0991

Please sign in to comment.