-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Rename the crate as
ctor_base
- Loading branch information
1 parent
624a9d8
commit 1efd2ee
Showing
13 changed files
with
36 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/target | ||
/.vscode | ||
.DS_Store | ||
Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,20 @@ | |
resolver = "2" | ||
|
||
members = [ | ||
"constructor_array", | ||
"constructor_array_macros", | ||
"ctor_bare", | ||
"ctor_bare_macros", | ||
] | ||
|
||
[workspace.package] | ||
version = "0.1.0" | ||
authors = ["Youjie Zheng <[email protected]>"] | ||
license = "GPL-3.0-or-later OR Apache-2.0 OR MulanPSL-2.0" | ||
homepage = "https://github.com/arceos-org/arceos" | ||
documentation = "https://arceos-org.github.io/constructor_array" | ||
repository = "https://github.com/arceos-org/constructor_array" | ||
documentation = "https://arceos-org.github.io/ctor_bare" | ||
repository = "https://github.com/arceos-org/ctor_bare" | ||
keywords = ["arceos", "constructor"] | ||
categories = ["development-tools::procedural-macro-helpers", "no-std"] | ||
|
||
[packages] | ||
constructor_array = { path = "constructor_array" } | ||
constructor_array_macros = { path = "constructor_array_macros" } | ||
ctor_bare = { path = "ctor_bare" } | ||
ctor_bare_macros = { path = "ctor_bare_macros" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/zyj/Code_file/ctor_bare/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
constructor_array/tests/test_empty.rs → ctor_bare/tests/test_empty.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#[test] | ||
fn test_empty() { | ||
// Sometimes under certain conditions, we may not have any constructor functions. | ||
// But the `invoke_ctors` function should still work, and the `__init_array_start` and | ||
// But the `call_ctors` function should still work, and the `__init_array_start` and | ||
// `__init_array_end` symbols should be valid. | ||
constructor_array::invoke_ctors(); | ||
ctor_bare::call_ctors(); | ||
println!("It should exit successfully when we don't specify any constructor functions."); | ||
} |
4 changes: 2 additions & 2 deletions
4
constructor_array_macros/Cargo.toml → ctor_bare_macros/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/zyj/Code_file/ctor_bare/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters