Skip to content

Instantly share code, notes, and snippets.

@thejpster
Created July 15, 2025 18:40
Show Gist options
  • Save thejpster/f134154083988b07735dd10a8a1f711d to your computer and use it in GitHub Desktop.
Save thejpster/f134154083988b07735dd10a8a1f711d to your computer and use it in GitHub Desktop.
cargo semver-checks
Building cortex-m v0.7.4 (current)
Built [ 5.133s] (current)
Parsing cortex-m v0.7.4 (current)
Parsed [ 0.014s] (current)
Building cortex-m v0.7.4 (baseline)
Built [ 5.453s] (baseline)
Parsing cortex-m v0.7.4 (baseline)
Parsed [ 0.007s] (baseline)
Checking cortex-m v0.7.4 -> v0.7.4 (no change)
Checked [ 0.017s] 153 checks: 146 pass, 6 fail, 1 warn, 11 skip
--- failure feature_missing: package feature removed or renamed ---
Description:
A feature has been removed from this package's Cargo.toml. This will break downstream crates which enable that feature.
ref: https://doc.rust-lang.org/cargo/reference/semver.html#cargo-feature-remove
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.41.0/src/lints/feature_missing.ron
Failed in:
feature inline-asm in the package's Cargo.toml
--- failure function_missing: pub fn removed or renamed ---
Description:
A publicly-visible function cannot be imported by its prior path. A `pub use` may have been removed, or the function itself may have been renamed or removed entirely.
ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.41.0/src/lints/function_missing.ron
Failed in:
function cortex_m::register::psp::read, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/psp.rs:5
function cortex_m::asm::semihosting_syscall, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/asm.rs:170
function cortex_m::asm::sev, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/asm.rs:60
function cortex_m::register::basepri::read, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/basepri.rs:5
function cortex_m::register::control::write, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/control.rs:161
function cortex_m::asm::wfi, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/asm.rs:54
function cortex_m::asm::delay, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/asm.rs:28
function cortex_m::register::lr::write, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/lr.rs:15
function cortex_m::interrupt::enable, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/interrupt.rs:47
function cortex_m::register::faultmask::read, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/faultmask.rs:28
function cortex_m::asm::bootload, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/asm.rs:205
function cortex_m::register::control::read, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/control.rs:154
function cortex_m::register::primask::read, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/primask.rs:28
function cortex_m::asm::wfe, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/asm.rs:48
function cortex_m::register::basepri_max::write, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/basepri_max.rs:11
function cortex_m::asm::bkpt, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/asm.rs:14
function cortex_m::register::pc::write, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/pc.rs:15
function cortex_m::register::msp::write, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/msp.rs:12
function cortex_m::register::lr::read, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/lr.rs:7
function cortex_m::interrupt::disable, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/interrupt.rs:37
function cortex_m::register::psp::write, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/psp.rs:11
function cortex_m::asm::bootstrap, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/asm.rs:185
function cortex_m::asm::udf, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/asm.rs:42
function cortex_m::register::basepri::write, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/basepri.rs:14
function cortex_m::register::pc::read, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/pc.rs:7
function cortex_m::register::msp::read, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/msp.rs:5
function cortex_m::register::apsr::read, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/register/apsr.rs:51
--- failure function_now_doc_hidden: pub function is now #[doc(hidden)] ---
Description:
A pub function is now #[doc(hidden)], removing it from the crate's public API.
ref: https://doc.rust-lang.org/rustdoc/write-documentation/the-doc-attribute.html#hidden
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.41.0/src/lints/function_now_doc_hidden.ron
Failed in:
function free in file /home/jonathan/Documents/github/rust-embedded/cortex-m/cortex-m/src/interrupt.rs:91
--- failure inherent_method_missing: pub method removed or renamed ---
Description:
A publicly-visible method or associated fn is no longer available under its prior name. It may have been renamed or removed entirely.
ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.41.0/src/lints/inherent_method_missing.ron
Failed in:
SCB::ptr, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/peripheral/mod.rs:602
NVIC::ptr, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/peripheral/mod.rs:546
ITM::ptr, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/peripheral/mod.rs:483
FPU::ptr, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/peripheral/mod.rs:415
DWT::ptr, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/peripheral/mod.rs:358
CPUID::ptr, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/peripheral/mod.rs:304
TPIU::ptr, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/peripheral/mod.rs:657
MPU::ptr, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/peripheral/mod.rs:519
SYST::ptr, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/peripheral/mod.rs:629
ICB::ptr, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/peripheral/mod.rs:448
FPB::ptr, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/peripheral/mod.rs:386
DCB::ptr, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/peripheral/mod.rs:331
CBP::ptr, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/peripheral/mod.rs:276
--- failure method_parameter_count_changed: pub method parameter count changed ---
Description:
A publicly-visible method now takes a different number of parameters.
ref: https://doc.rust-lang.org/cargo/reference/semver.html#fn-change-arity
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.41.0/src/lints/method_parameter_count_changed.ron
Failed in:
cortex_m::peripheral::NVIC::request now takes 1 parameters instead of 2, in /home/jonathan/Documents/github/rust-embedded/cortex-m/cortex-m/src/peripheral/nvic.rs:97
cortex_m::peripheral::DWT::num_comp now takes 1 parameters instead of 0, in /home/jonathan/Documents/github/rust-embedded/cortex-m/cortex-m/src/peripheral/dwt.rs:104
cortex_m::peripheral::DWT::has_exception_trace now takes 1 parameters instead of 0, in /home/jonathan/Documents/github/rust-embedded/cortex-m/cortex-m/src/peripheral/dwt.rs:111
cortex_m::peripheral::DWT::has_external_match now takes 1 parameters instead of 0, in /home/jonathan/Documents/github/rust-embedded/cortex-m/cortex-m/src/peripheral/dwt.rs:118
cortex_m::peripheral::DWT::has_cycle_counter now takes 1 parameters instead of 0, in /home/jonathan/Documents/github/rust-embedded/cortex-m/cortex-m/src/peripheral/dwt.rs:124
cortex_m::peripheral::DWT::has_profiling_counter now takes 1 parameters instead of 0, in /home/jonathan/Documents/github/rust-embedded/cortex-m/cortex-m/src/peripheral/dwt.rs:135
cortex_m::peripheral::DWT::cycle_counter_enabled now takes 1 parameters instead of 0, in /home/jonathan/Documents/github/rust-embedded/cortex-m/cortex-m/src/peripheral/dwt.rs:173
--- failure module_missing: pub module removed or renamed ---
Description:
A publicly-visible module cannot be imported by its prior path. A `pub use` may have been removed, or the module may have been renamed, removed, or made non-public.
ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.41.0/src/lints/module_missing.ron
Failed in:
mod cortex_m::prelude, previously in file /home/jonathan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.4/src/prelude.rs:1
--- warning repr_c_plain_struct_fields_reordered: struct fields reordered in repr(C) struct ---
Description:
A public repr(C) struct had its fields reordered. This can change the struct's memory layout, possibly breaking FFI use cases that depend on field position and order.
ref: https://doc.rust-lang.org/reference/type-layout.html#reprc-structs
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.41.0/src/lints/repr_c_plain_struct_fields_reordered.ron
Failed in:
RegisterBlock.ipr moved from position 11 to 13, in /home/jonathan/Documents/github/rust-embedded/cortex-m/cortex-m/src/peripheral/nvic.rs:61
RegisterBlock.stir moved from position 13 to 15, in /home/jonathan/Documents/github/rust-embedded/cortex-m/cortex-m/src/peripheral/nvic.rs:82
Summary semver requires new major version: 6 major and 0 minor checks failed
Warning produced 1 major and 0 minor level warnings
Finished [ 12.592s] cortex-m
Building cortex-m-rt v0.7.5 (current)
Built [ 3.569s] (current)
Parsing cortex-m-rt v0.7.5 (current)
Parsed [ 0.001s] (current)
Building cortex-m-rt v0.7.5 (baseline)
Built [ 3.567s] (baseline)
Parsing cortex-m-rt v0.7.5 (baseline)
Parsed [ 0.001s] (baseline)
Checking cortex-m-rt v0.7.5 -> v0.7.5 (no change)
Checked [ 0.004s] 153 checks: 153 pass, 11 skip
Summary no semver update required
Finished [ 8.467s] cortex-m-rt
Building cortex-m-semihosting v0.5.0 (current)
Built [ 0.576s] (current)
Parsing cortex-m-semihosting v0.5.0 (current)
Parsed [ 0.001s] (current)
Building cortex-m-semihosting v0.5.0 (baseline)
Built [ 0.788s] (baseline)
Parsing cortex-m-semihosting v0.5.0 (baseline)
Parsed [ 0.001s] (baseline)
Checking cortex-m-semihosting v0.5.0 -> v0.5.0 (no change)
Checked [ 0.004s] 153 checks: 153 pass, 11 skip
Summary no semver update required
Finished [ 2.284s] cortex-m-semihosting
Building panic-itm v0.4.2 (current)
Built [ 0.554s] (current)
Parsing panic-itm v0.4.2 (current)
Parsed [ 0.001s] (current)
Building panic-itm v0.4.2 (baseline)
Built [ 0.840s] (baseline)
Parsing panic-itm v0.4.2 (baseline)
Parsed [ 0.001s] (baseline)
Checking panic-itm v0.4.2 -> v0.4.2 (no change)
Checked [ 0.003s] 153 checks: 153 pass, 11 skip
Summary no semver update required
Finished [ 3.017s] panic-itm
Building panic-semihosting v0.6.0 (current)
Built [ 0.569s] (current)
Parsing panic-semihosting v0.6.0 (current)
Parsed [ 0.000s] (current)
Building panic-semihosting v0.6.0 (baseline)
Built [ 0.834s] (baseline)
Parsing panic-semihosting v0.6.0 (baseline)
Parsed [ 0.001s] (baseline)
Checking panic-semihosting v0.6.0 -> v0.6.0 (no change)
Checked [ 0.003s] 153 checks: 153 pass, 11 skip
Summary no semver update required
Finished [ 2.348s] panic-semihosting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment