Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
multiversion 0.6.1 - Docs.rs
[go: Go Back, main page]

multiversion 0.6.1

Easy function multiversioning
Documentation
// export multiversion somewhere else
pub mod multiversion_export {
    pub mod nested {
        pub use multiversion::*;
    }
}

#[allow(unused_imports)]
use core as multiversion; // override the multiversion name

#[multiversion_export::nested::multiversion]
#[clone(target = "[x86|x86_64]+avx")]
#[crate_path(path = "multiversion_export::nested")]
fn foo() {}

#[test]
fn crate_path() {
    foo()
}