Skip to content

Commit 35e4c6e

Browse files
committed
lib: package-level license, edition and repository information
Signed-off-by: Zhouqi Jiang <[email protected]>
1 parent 0dae741 commit 35e4c6e

File tree

7 files changed

+30
-6
lines changed

7 files changed

+30
-6
lines changed

Cargo.toml

+6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
[workspace]
2+
resolver = "2"
23
members = ["common", "hal", "spl", "see", "test-kernel", "xtask"]
34
default-members = ["xtask"]
45

6+
[workspace.package]
7+
edition = "2021"
8+
license = "MulanPSL-2.0 OR MIT"
9+
repository = "https://github.com/rustsbi/rustsbi-d1"
10+
511
[profile.release]
612
lto = true
713
opt-level = "z"

common/Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[package]
22
name = "common"
33
version = "0.1.0"
4-
edition = "2021"
4+
5+
edition.workspace = true
6+
license.workspace = true
7+
repository.workspace = true
58

69
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
710

hal/Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
[package]
22
name = "hal"
33
version = "0.1.0"
4-
edition = "2021"
54
authors = ["YdrMaster <[email protected]>"]
65

6+
edition.workspace = true
7+
license.workspace = true
8+
repository.workspace = true
9+
710
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
811

912
[dependencies]

see/Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ cargo-features = ["per-package-target"]
33
[package]
44
name = "see"
55
version = "0.1.0"
6-
edition = "2021"
76
forced-target = "riscv64imac-unknown-none-elf"
87
authors = ["YdrMaster <[email protected]>"]
98

9+
edition.workspace = true
10+
license.workspace = true
11+
repository.workspace = true
12+
1013
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1114

1215
[dependencies]

spl/Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ cargo-features = ["per-package-target"]
33
[package]
44
name = "spl"
55
version = "0.0.0"
6-
edition = "2021"
76
forced-target = "riscv64imac-unknown-none-elf"
87
authors = ["YdrMaster <[email protected]>"]
98

9+
edition.workspace = true
10+
license.workspace = true
11+
repository.workspace = true
12+
1013
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1114

1215
[dependencies]

test-kernel/Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ cargo-features = ["per-package-target"]
33
[package]
44
name = "test-kernel"
55
version = "0.1.0"
6-
edition = "2021"
76
build = "build.rs"
87
forced-target = "riscv64imac-unknown-none-elf"
98
authors = ["YdrMaster <[email protected]>"]
109

10+
edition.workspace = true
11+
license.workspace = true
12+
repository.workspace = true
13+
1114
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1215

1316
[dependencies]

xtask/Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
[package]
22
name = "xtask"
33
version = "0.1.0"
4-
edition = "2021"
54
authors = ["YdrMaster <[email protected]>"]
65

6+
edition.workspace = true
7+
license.workspace = true
8+
repository.workspace = true
9+
710
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
811

912
[dependencies]

0 commit comments

Comments
 (0)