Skip to content

Commit

Permalink
Backport #79, Implement rb-sys stable api for RArray and RString
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Malette <guillaume.malette@shopify.com>
  • Loading branch information
matsadler and gmalette committed Aug 16, 2023
1 parent ef66b6b commit 3b22ea1
Show file tree
Hide file tree
Showing 12 changed files with 96 additions and 228 deletions.
49 changes: 19 additions & 30 deletions Cargo.lock

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

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ deprecated-send-sync-value = []
[dependencies]
bytes = { version = "1", optional = true }
magnus-macros = { version = "0.6.0", path = "magnus-macros" }
rb-sys = { version = "0.9.77", default-features = false, features = ["bindgen-rbimpls", "bindgen-deprecated-types"] }
rb-sys = { version = "0.9.81", default-features = false, features = ["bindgen-rbimpls", "bindgen-deprecated-types", "stable-api"] }
seq-macro = "0.3"

[dev-dependencies]
magnus = { path = ".", features = ["embed", "rb-sys"] }
rb-sys = { version = "*", default-features = false, features = ["stable-api-compiled-fallback"] }

[build-dependencies]
rb-sys-env = "0.1.1"
rb-sys-env = "0.1.2"

[lib]
doc-scrape-examples = false
Expand Down
34 changes: 12 additions & 22 deletions examples/complete_object/ext/temperature/Cargo.lock

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

3 changes: 3 additions & 0 deletions examples/complete_object/ext/temperature/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ crate-type = ["cdylib"]

[dependencies]
magnus = { path = "../../../.." }
# enable rb-sys feature to test against Ruby head. This is only needed if you
# want to work with the unreleased, in-development, next version of Ruby
rb-sys = { version = "*", default-features = false, features = ["stable-api-compiled-fallback"] }
34 changes: 12 additions & 22 deletions examples/custom_exception_ruby/ext/ahriman/Cargo.lock

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

3 changes: 3 additions & 0 deletions examples/custom_exception_ruby/ext/ahriman/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ crate-type = ["cdylib"]

[dependencies]
magnus = { path = "../../../.." }
# enable rb-sys feature to test against Ruby head. This is only needed if you
# want to work with the unreleased, in-development, next version of Ruby
rb-sys = { version = "*", default-features = false, features = ["stable-api-compiled-fallback"] }
Loading

0 comments on commit 3b22ea1

Please sign in to comment.