From 5d104a1d01b8382798355e46e3808a4374d07c52 Mon Sep 17 00:00:00 2001 From: Jaroslaw Konik Date: Tue, 20 May 2025 17:02:57 +0200 Subject: [PATCH] cleanup --- Cargo.toml | 3 ++- build.rs | 5 ++--- src/runtimes/ruby.rs | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 759fcf2..f4666e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,8 +31,9 @@ mlua = { version = "0.9.8", features = [ "vendored", "send", ], optional = true } -magnus = { version = "0.7.1", optional = true, features = ["embed"] } +magnus = { version = "0.7.1", optional = true } rb-sys = { version = "*", default-features = false, features = ["link-ruby", "ruby-static"], optional = true } +openssl-sys = { version = "0.9", features = ["vendored"] } crossbeam-channel = "0.5.15" [[example]] diff --git a/build.rs b/build.rs index b43b3de..a90c73a 100644 --- a/build.rs +++ b/build.rs @@ -1,6 +1,5 @@ -fn main() { - // export RUBY_CONFIGURE_OPTS="--disable-shared --disable-install-doc --disable-install-rdoc" - // ./configure --with-cc-opt=“-I/usr/local/ssl/include” –with-ld-opt=“-L/usr/local/ssl/lib -Wl,-Bstatic -lssl -lcrypto -Wl,-Bdynamic -ldl” +use std::{env, path::PathBuf, process::Command}; +fn main() { println!("cargo:rustc-link-lib=z"); // TODO: if features Ruby } diff --git a/src/runtimes/ruby.rs b/src/runtimes/ruby.rs index 8a74fc1..fa535a6 100644 --- a/src/runtimes/ruby.rs +++ b/src/runtimes/ruby.rs @@ -1,3 +1,5 @@ +// TODO: install with CC=clang rbenv install 3.4.3 + use std::{ collections::HashMap, ffi::CString,