This commit is contained in:
Jaroslaw Konik 2025-05-20 17:02:57 +02:00
parent b6e251dcca
commit 5d104a1d01
3 changed files with 6 additions and 4 deletions

View file

@ -31,8 +31,9 @@ mlua = { version = "0.9.8", features = [
"vendored", "vendored",
"send", "send",
], optional = true } ], 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 } 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" crossbeam-channel = "0.5.15"
[[example]] [[example]]

View file

@ -1,6 +1,5 @@
fn main() { use std::{env, path::PathBuf, process::Command};
// 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”
fn main() {
println!("cargo:rustc-link-lib=z"); // TODO: if features Ruby println!("cargo:rustc-link-lib=z"); // TODO: if features Ruby
} }

View file

@ -1,3 +1,5 @@
// TODO: install with CC=clang rbenv install 3.4.3
use std::{ use std::{
collections::HashMap, collections::HashMap,
ffi::CString, ffi::CString,