• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

davidcole1340 / ext-php-rs / 16274044079

14 Jul 2025 05:50PM UTC coverage: 22.325% (-0.2%) from 22.552%
16274044079

Pull #513

github

Xenira
chore(stubs): revert breaking change in RustClosure stubs

This reverts commit 31c9d9968.
Pull Request #513: Revert "feat(stubs): add stubs for `RustClosure`"

1 of 1 new or added line in 1 file covered. (100.0%)

870 of 3897 relevant lines covered (22.32%)

3.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/crates/macros/src/fastcall.rs
1
use proc_macro2::{Span, TokenStream};
2
use quote::ToTokens;
3
use syn::{ItemFn, LitStr};
4

5
#[cfg(windows)]
6
const ABI: &str = "vectorcall";
7
#[cfg(not(windows))]
8
const ABI: &str = "C";
9

10
/// Parses a function and sets the correct ABI to interact with PHP depending
11
/// on the OS.
12
///
13
/// On Windows, this sets the extern ABI to vectorcall while on all other OS
14
/// it sets it to C.
15
pub fn parser(mut input: ItemFn) -> TokenStream {
×
16
    if let Some(abi) = &mut input.sig.abi {
×
17
        abi.name = Some(LitStr::new(ABI, Span::call_site()));
×
18
    }
19
    input.to_token_stream()
×
20
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc