Commit 9f267ef
committed
Add ruby-rbs crate
This commit introduces the `ruby-rbs` crate, which will provide a safe,
high-level Rust API for the RBS C library. It follows the common Rust
pattern of separating the safe wrapper from the `*-sys` crate that
provides the raw FFI bindings.
The `ruby-rbs` crate will depend on `ruby-rbs-sys` for the unsafe C
bindings and will expose a safe, idiomatic Rust interface. This commit
sets up the foundation for that structure.
The initial implementation includes:
- The basic crate structure with its own Cargo.toml, declaring a
dependency on `ruby-rbs-sys`.
- A build script (`build.rs`) that will be responsible for generating
safe Rust wrappers from the C API. Currently, it only generates an
empty `bindings.rs` file.
- The `ruby-rbs` crate is added to the main workspace `Cargo.toml`.
While the interaction is not yet implemented, this setup paves the way
for providing a robust Rust interface for RBS, which will improve safety
and developer experience.1 parent 4f43565 commit 9f267ef
5 files changed
Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments