Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,26 @@ jobs:
run: |
cd rust
cargo test --verbose

publish-dry-run:
name: cargo:publish-dry-run
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v6
- name: Install Rust tools
run: |
rustup update --no-self-update stable
rustup default stable
- uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
rust/target
key: ${{ runner.os }}-cargo-${{ hashFiles('rust/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Test publish crates
run: |
cd rust
Expand Down
2 changes: 1 addition & 1 deletion rust/ruby-rbs/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::ptr::NonNull;
/// ```
pub fn parse(rbs_code: &[u8]) -> Result<SignatureNode<'_>, String> {
unsafe {
let start_ptr = rbs_code.as_ptr() as *const i8;
let start_ptr = rbs_code.as_ptr() as *const std::os::raw::c_char;
let end_ptr = start_ptr.add(rbs_code.len());
let bytes = rbs_code.len() as i32;

Expand Down