-
Notifications
You must be signed in to change notification settings - Fork 837
Open
Description
nom-language includes nom as a dependency using default features:
Line 11 in 51c3c4e
| nom = { path = "..", version = "8.0.0" } |
That ends up enabling std:
Lines 31 to 34 in 51c3c4e
| [features] | |
| alloc = [] | |
| std = ["alloc", "memchr/std"] | |
| default = ["std"] |
Reproduction
Cargo.toml:
[package]
name = "nom-std-bug"
version = "0.1.0"
edition = "2024"
[dependencies]
nom = { version = "8.0.0", default-features = false }
nom-language = "0.1.0"src/main.rs:
#![no_std]
#![no_main]
use core::panic::PanicInfo;
#[panic_handler]
fn panic(_panic_info: &PanicInfo) -> ! {
loop {}
}cargo build --target x86_64-unknown-noneThe build should succeed, but does not. (It does without nom-language added.)
Metadata
Metadata
Assignees
Labels
No labels