Skip to content

Commit

Permalink
[chore] Upgrade to edition2024, bump to v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure-stars committed Jan 25, 2025
1 parent 69edaaa commit bbd4cb9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ members = [
]

[workspace.package]
version = "0.1.1"
version = "0.2.0"
edition = "2024"
authors = ["Youjie Zheng <Azure_stars@126.com>"]
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/ctor_bare"
repository = "https://github.com/arceos-org/ctor_bare"
keywords = ["arceos", "constructor", "no_std"]
categories = ["development-tools::procedural-macro-helpers", "no-std"]

2 changes: 1 addition & 1 deletion ctor_bare/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ctor_bare"
edition = "2021"
edition.workspace = true
description = "Register constructor functions for Rust at complie time under no_std."
documentation = "https://docs.rs/ctor_bare"
version.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions ctor_bare/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ pub use ctor_bare_macros::register_ctor;

/// Placeholder for the `.init_array` section, so that
/// the `__init_array_start` and `__init_array_end` symbols can be generated.
#[link_section = ".init_array"]
#[unsafe(link_section = ".init_array")]
#[used]
static _SECTION_PLACE_HOLDER: [u8; 0] = [];

extern "C" {
unsafe extern "C" {
fn __init_array_start();
fn __init_array_end();
}
Expand Down
2 changes: 1 addition & 1 deletion ctor_bare_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ctor_bare_macros"
edition = "2021"
edition.workspace = true
description = "Macros for registering constructor functions for Rust under no_std."
documentation = "https://docs.rs/ctor_bare_macros"
version.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion ctor_bare_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use proc_macro::TokenStream;
use proc_macro2::Span;
use quote::{format_ident, quote};
use syn::{parse_macro_input, Error, Item};
use syn::{Error, Item, parse_macro_input};

/// Register a constructor function to be called before `main`.
///
Expand Down

0 comments on commit bbd4cb9

Please sign in to comment.