aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG5
-rw-r--r--Cargo.toml4
-rw-r--r--differential-tests/Cargo.toml2
-rw-r--r--goodfile5
-rw-r--r--tests/no_std_check/.gitignore1
-rw-r--r--tests/no_std_check/Cargo.toml24
-rw-r--r--tests/no_std_check/src/main.rs11
7 files changed, 49 insertions, 3 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 51dccc1..36c766d 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,8 @@
+## 0.3.1
+
+* fix no-std transitively depending on std still
+ - thank you @encounter for the patch!
+
## 0.3.0
* major version bump of yaxpeax-arch (0.2.7 -> 0.3.1)
diff --git a/Cargo.toml b/Cargo.toml
index f02f477..6e00eb3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "yaxpeax-arm"
-version = "0.3.0"
+version = "0.3.1"
authors = ["iximeow <me@iximeow.net>"]
license = "0BSD"
repository = "http://git.iximeow.net/yaxpeax-arm/"
@@ -16,7 +16,7 @@ members = ["differential-tests"]
[dependencies]
yaxpeax-arch = { version = "0.3.1", default-features = false, features = [] }
-bitvec = "1.0.1"
+bitvec = { version = "1.0.1", default-features = false, features = [] }
"serde" = { version = "1.0", optional = true }
"serde_derive" = { version = "1.0", optional = true }
diff --git a/differential-tests/Cargo.toml b/differential-tests/Cargo.toml
index 6280cf5..64292d5 100644
--- a/differential-tests/Cargo.toml
+++ b/differential-tests/Cargo.toml
@@ -7,7 +7,7 @@ description = "differential testing between yaxpeax-arm and other disassemblers"
[dependencies]
yaxpeax-arm = { path = "../", version = "*" }
-yaxpeax-arch = { version = "0.2.2", default-features = false, features = [] }
+yaxpeax-arch = { version = "0.3.1", default-features = false, features = [] }
capstone = "*"
capstone-sys = "*"
diff --git a/goodfile b/goodfile
index a33fd7a..1105a7a 100644
--- a/goodfile
+++ b/goodfile
@@ -12,3 +12,8 @@ Build.run({"cargo", "build"})
Step.advance("test")
Build.run({"cargo", "test"}, {name="test stdlib/fmt"})
Build.run({"cargo", "test", "--no-default-features"}, {name="test nostdlib/fmt"})
+
+Build.run({"cargo", "rustc", "--", "-C", "link-arg=-nostartfiles"}, {cwd="tests/no_std_check"})
+Build.run({"cargo", "rustc", "--release", "--", "-C", "link-arg=-nostartfiles"}, {cwd="tests/no_std_check"})
+
+Build.run({"cargo", "build", "--release"}, {cwd="differential-tests", name="build capstone differential"})
diff --git a/tests/no_std_check/.gitignore b/tests/no_std_check/.gitignore
new file mode 100644
index 0000000..2f7896d
--- /dev/null
+++ b/tests/no_std_check/.gitignore
@@ -0,0 +1 @@
+target/
diff --git a/tests/no_std_check/Cargo.toml b/tests/no_std_check/Cargo.toml
new file mode 100644
index 0000000..f5ad827
--- /dev/null
+++ b/tests/no_std_check/Cargo.toml
@@ -0,0 +1,24 @@
+[package]
+
+name = "no-std-test"
+version = "0.0.1"
+authors = ["iximeow <me@iximeow.net>"]
+license = "0BSD"
+description = "test crate to check that yaxpeax-arm is actually no-stds"
+edition = "2021"
+publish = false
+
+[[bin]]
+name = "no-std-test"
+path = "src/main.rs"
+
+[profile.dev]
+panic = "abort"
+
+[profile.release]
+panic = "abort"
+
+[dependencies]
+yaxpeax-arm = { path = "../..", default-features = false }
+
+[workspace]
diff --git a/tests/no_std_check/src/main.rs b/tests/no_std_check/src/main.rs
new file mode 100644
index 0000000..73b5d56
--- /dev/null
+++ b/tests/no_std_check/src/main.rs
@@ -0,0 +1,11 @@
+#![no_std]
+#![no_main]
+
+#[allow(unused_imports)]
+use yaxpeax_arm;
+
+#[panic_handler]
+fn panic(_: &core::panic::PanicInfo) -> ! { loop {} }
+
+#[no_mangle]
+pub extern "C" fn _start() -> ! { loop {} }