summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2025-02-06 10:32:19 -0500
committerTakashi Kokubun <[email protected]>2025-04-18 21:52:55 +0900
commita65b79c6537d84cac82b1e0f76ff0fd8c69931af (patch)
treeac3a96a49fe0db69280ccc260d2865208b410732
parent82606faaea562980fa2988c8a73ef1267adbe97b (diff)
Turn ZJIT into staticlib
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13131
-rw-r--r--zjit/Cargo.lock2
-rw-r--r--zjit/Cargo.toml9
-rw-r--r--zjit/src/lib.rs3
3 files changed, 11 insertions, 3 deletions
diff --git a/zjit/Cargo.lock b/zjit/Cargo.lock
index f721dd3bda..cdf798516c 100644
--- a/zjit/Cargo.lock
+++ b/zjit/Cargo.lock
@@ -4,4 +4,4 @@ version = 3
[[package]]
name = "zjit"
-version = "0.1.0"
+version = "0.0.0"
diff --git a/zjit/Cargo.toml b/zjit/Cargo.toml
index f40db95272..23f872a470 100644
--- a/zjit/Cargo.toml
+++ b/zjit/Cargo.toml
@@ -1,6 +1,11 @@
[package]
name = "zjit"
-version = "0.1.0"
-edition = "2021"
+version = "0.0.0"
+edition = "2021" # Rust 2021 edition to compile with
+rust-version = "1.58.0" # Minimally supported rust version
+publish = false # Don't publish to crates.io
+
+[lib]
+crate-type = ["staticlib"]
[dependencies]
diff --git a/zjit/src/lib.rs b/zjit/src/lib.rs
new file mode 100644
index 0000000000..a135192397
--- /dev/null
+++ b/zjit/src/lib.rs
@@ -0,0 +1,3 @@
+extern "C" fn zjit_init() {
+ println!("zjit_init");
+}