diff --git a/Cargo.toml b/Cargo.toml index 99ce993..c830967 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ exclude = ["/.github", "ci"] keywords = ["linux"] [dependencies] -c-gull = { version = "0.17.0", default-features = false, features = ["eyra"] } +c-gull = { version = "0.18.0", default-features = false, features = ["eyra"] } [dev-dependencies] assert_cmd = "2.0.12" @@ -23,14 +23,16 @@ libc = "0.2.151" cfg-if = "1.0.0" rand_xorshift = "0.3.0" -# Test that the ctor crate works under mustang. +# Test that the ctor crate works under eyra. ctor = "0.2.0" # Check if rustup is installed for tests which = "6.0.0" -# Test that the core_simd crate works under mustang. -core_simd = { git = "https://github.com/rust-lang/portable-simd" } +# Test that the core_simd crate works under eyra. +# TODO: Reenable this when the crate compiles on nightly. Currently it gets: +# - error[E0511]: invalid monomorphization of `simd_shuffle` intrinsic: simd_shuffle index must be a SIMD vector of `u32`, got `[u32; 4]` +#core_simd = { git = "https://github.com/rust-lang/portable-simd" } # When generating documentation for docs.rs, don't enable "be-std", since we # don't need to duplicate std's documentation. @@ -78,9 +80,3 @@ todo = ["c-gull/todo"] # Enable `unimplemented!()` stubs for deprecated functions. deprecated-and-unimplemented = ["c-gull/deprecated-and-unimplemented"] - -# TODO: Remove this workaround when -# https://github.com/llvm/llvm-project/pull/105513 -# makes it into the Rust compiler. -[profile.dev.package.unwinding] -debug = false diff --git a/README.md b/README.md index d1624b7..f4a5965 100644 --- a/README.md +++ b/README.md @@ -41,15 +41,6 @@ fn main() { } ``` -And, to work around an LLVM bug, add the following to Cargo.toml: -```toml -# TODO: Remove this workaround when -# https://github.com/llvm/llvm-project/pull/105513 -# makes it into the Rust compiler. -[profile.dev.package.unwinding] -debug = false -``` - With that, `cargo build`, `cargo run`, `cargo test` (with Nightly) and so on will work normally with any `*-unknown-linux-gnu*` target. diff --git a/example-crates/all-from-source/Cargo.toml b/example-crates/all-from-source/Cargo.toml index 682e61f..0b25458 100644 --- a/example-crates/all-from-source/Cargo.toml +++ b/example-crates/all-from-source/Cargo.toml @@ -15,9 +15,3 @@ codegen-units = 1 # This is just an example crate, and not part of the eyra workspace. [workspace] - -# TODO: Remove this workaround when -# https://github.com/llvm/llvm-project/pull/105513 -# makes it into the Rust compiler. -[profile.dev.package.unwinding] -debug = false diff --git a/example-crates/extern-crate-eyra-optional-example/Cargo.toml b/example-crates/extern-crate-eyra-optional-example/Cargo.toml index 7327b5a..52ae79c 100644 --- a/example-crates/extern-crate-eyra-optional-example/Cargo.toml +++ b/example-crates/extern-crate-eyra-optional-example/Cargo.toml @@ -10,9 +10,3 @@ eyra = { path = "../..", optional = true } # This is just an example crate, and not part of the eyra workspace. [workspace] - -# TODO: Remove this workaround when -# https://github.com/llvm/llvm-project/pull/105513 -# makes it into the Rust compiler. -[profile.dev.package.unwinding] -debug = false diff --git a/example-crates/extern-crate-hello-world/Cargo.toml b/example-crates/extern-crate-hello-world/Cargo.toml index a602c14..c0a5764 100644 --- a/example-crates/extern-crate-hello-world/Cargo.toml +++ b/example-crates/extern-crate-hello-world/Cargo.toml @@ -9,9 +9,3 @@ eyra = { path = "../.." } # This is just an example crate, and not part of the eyra workspace. [workspace] - -# TODO: Remove this workaround when -# https://github.com/llvm/llvm-project/pull/105513 -# makes it into the Rust compiler. -[profile.dev.package.unwinding] -debug = false diff --git a/example-crates/eyra-libc-example/Cargo.toml b/example-crates/eyra-libc-example/Cargo.toml index 16db7f2..b1f634e 100644 --- a/example-crates/eyra-libc-example/Cargo.toml +++ b/example-crates/eyra-libc-example/Cargo.toml @@ -10,9 +10,3 @@ libc = "0.2.148" # This is just an example crate, and not part of the eyra workspace. [workspace] - -# TODO: Remove this workaround when -# https://github.com/llvm/llvm-project/pull/105513 -# makes it into the Rust compiler. -[profile.dev.package.unwinding] -debug = false diff --git a/example-crates/eyra-optional-example/Cargo.toml b/example-crates/eyra-optional-example/Cargo.toml index c93f4e3..a1be5e3 100644 --- a/example-crates/eyra-optional-example/Cargo.toml +++ b/example-crates/eyra-optional-example/Cargo.toml @@ -13,9 +13,3 @@ eyra = ["dep:std"] # This is just an example crate, and not part of the eyra workspace. [workspace] - -# TODO: Remove this workaround when -# https://github.com/llvm/llvm-project/pull/105513 -# makes it into the Rust compiler. -[profile.dev.package.unwinding] -debug = false diff --git a/example-crates/eyra-panic-example/Cargo.toml b/example-crates/eyra-panic-example/Cargo.toml index db90ad8..6b85634 100644 --- a/example-crates/eyra-panic-example/Cargo.toml +++ b/example-crates/eyra-panic-example/Cargo.toml @@ -9,9 +9,3 @@ std = { package = "eyra", path = "../.." } # This is just an example crate, and not part of the eyra workspace. [workspace] - -# TODO: Remove this workaround when -# https://github.com/llvm/llvm-project/pull/105513 -# makes it into the Rust compiler. -[profile.dev.package.unwinding] -debug = false diff --git a/example-crates/hello-world-lto/Cargo.toml b/example-crates/hello-world-lto/Cargo.toml index 649f209..1f95aee 100644 --- a/example-crates/hello-world-lto/Cargo.toml +++ b/example-crates/hello-world-lto/Cargo.toml @@ -13,9 +13,3 @@ lto = true # This is just an example crate, and not part of the eyra workspace. [workspace] - -# TODO: Remove this workaround when -# https://github.com/llvm/llvm-project/pull/105513 -# makes it into the Rust compiler. -[profile.dev.package.unwinding] -debug = false diff --git a/example-crates/hello-world-small/Cargo.toml b/example-crates/hello-world-small/Cargo.toml index 06b3405..e5ae4fe 100644 --- a/example-crates/hello-world-small/Cargo.toml +++ b/example-crates/hello-world-small/Cargo.toml @@ -17,9 +17,3 @@ panic = "abort" # This is just an example crate, and not part of the eyra workspace. [workspace] - -# TODO: Remove this workaround when -# https://github.com/llvm/llvm-project/pull/105513 -# makes it into the Rust compiler. -[profile.dev.package.unwinding] -debug = false diff --git a/example-crates/hello-world/Cargo.toml b/example-crates/hello-world/Cargo.toml index 2f65a61..7f1cad0 100644 --- a/example-crates/hello-world/Cargo.toml +++ b/example-crates/hello-world/Cargo.toml @@ -9,9 +9,3 @@ std = { package = "eyra", path = "../.." } # This is just an example crate, and not part of the eyra workspace. [workspace] - -# TODO: Remove this workaround when -# https://github.com/llvm/llvm-project/pull/105513 -# makes it into the Rust compiler. -[profile.dev.package.unwinding] -debug = false diff --git a/example-crates/no-std/Cargo.toml b/example-crates/no-std/Cargo.toml index bcc9e80..9bbd2aa 100644 --- a/example-crates/no-std/Cargo.toml +++ b/example-crates/no-std/Cargo.toml @@ -10,9 +10,3 @@ rustix-dlmalloc = { version = "0.1.0", features = ["global"] } # This is just an example crate, and not part of the eyra workspace. [workspace] - -# TODO: Remove this workaround when -# https://github.com/llvm/llvm-project/pull/105513 -# makes it into the Rust compiler. -[profile.dev.package.unwinding] -debug = false diff --git a/examples/test-simd.rs b/examples/test-simd.rs index 2263b4f..bb23f98 100644 --- a/examples/test-simd.rs +++ b/examples/test-simd.rs @@ -2,12 +2,15 @@ extern crate eyra; -use core::arch::asm; +//use core::arch::asm; fn main() { + // TODO: Reenable this when the crate compiles on nightly. + /* use core_simd::simd::*; let mut a = f32x4::splat(2.0); unsafe { asm!("# {}", in(reg) &mut a) }; assert_eq!(a, f32x4::splat(2.0)); assert_eq!(&a as *const _ as usize & 0xf, 0); + */ } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index a4f6aee..e089896 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2024-08-19" +channel = "nightly-2024-10-01" components = ["rustc", "cargo", "rust-std", "rust-src", "rustfmt"] diff --git a/tests/examples.rs b/tests/examples.rs index bdf39bf..9018160 100644 --- a/tests/examples.rs +++ b/tests/examples.rs @@ -39,7 +39,7 @@ fn test_example(name: &str, features: &str, stdout: &str, stderr: &str) { let mut command = Command::new("cargo"); if which::which("rustup").is_ok() { - command.arg("+nightly-2024-08-19"); + command.arg("+nightly-2024-10-01"); } command.arg("run").arg("--quiet"); if !features.is_empty() {