syscall.rs icon indicating copy to clipboard operation
syscall.rs copied to clipboard

make this crate work on stable

Open japaric opened this issue 8 years ago • 5 comments

Add a Cargo feature that moves the asm! blocks into assembly files (.s) that get built at compile time. The syscall! macro would then call those external functions via extern fn.

japaric avatar Feb 07 '17 20:02 japaric

Bump. I'd definitely love to have this crate available on stable, in order to get rid of a silly libc dependency just for syscall(2).

lucab avatar Jun 09 '17 13:06 lucab

This can now be implemented by moving to the recently stabilized asm! macro.

vks avatar Jul 28 '20 20:07 vks

This can now be implemented by moving to the recently stabilized asm! macro.

Happy to take a PR that does this when the feature gate has been removed in a beta release. Please do not open a PR before then.

japaric avatar Jul 28 '20 20:07 japaric

On nightly-2022-01-18 and later this crate no longer builds because llvm_asm! was removed in https://github.com/rust-lang/rust/pull/92816. And asm! is available on beta since 2022-01-13.

I might take a shot at a patch, but I'm quite terrible at inline assembly. If someone has any expertise with asm! please help.

saethlin avatar Jan 20 '22 00:01 saethlin

I did most of the platforms where the required changes are trivial in PR #33.

niluxv avatar Jan 30 '22 18:01 niluxv