Ruby support #1

Open
jaroslaw wants to merge 165 commits from ruby into main
3 changed files with 6 additions and 4 deletions
Showing only changes of commit 5d104a1d01 - Show all commits

View file

@ -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]]

View file

@ -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
}

View file

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