Skip to content

Commit

Permalink
fix(bindings/ruby): use rb_sys_env to help find ruby for building
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Apr 20, 2023
1 parent 6ce6ead commit c90a127
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions bindings/ruby/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ name = "opendal_ruby"

[dependencies]
magnus = { version = "0.5", features = ["bytes-crate"] }
rb-sys = { version = "0.9.72", default-features = false }
opendal.workspace = true

[build-dependencies]
rb-sys-env = "0.1.2"
5 changes: 5 additions & 0 deletions bindings/ruby/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
let _ = rb_sys_env::activate()?;

Ok(())
}

0 comments on commit c90a127

Please sign in to comment.