Crates.io | cxx_linker |
lib.rs | cxx_linker |
version | 0.1.0 |
source | src |
created_at | 2024-08-29 10:56:17.490984 |
updated_at | 2024-08-29 10:56:17.490984 |
description | A procedural macro for linking Rust functions with C++ using Itanium name mangling. |
homepage | https://github.com/NightProg/cxx_linker.git |
repository | https://github.com/NightProg/cxx_linker.git |
max_upload_size | |
id | 1355966 |
size | 5,218 |
A procedural macro for linking Rust functions with C++ using Itanium name mangling.
use cxx_linker::cxx_link;
extern "C" {
#[cxx_link("blobstore::foo<int>::bar(int, blobstore::SomeType&, bool)")]
fn bar(a: i32, b: *mut (), c: bool);
}
will be expanded to
extern "C" {
#[link_name = "_ZN9blobstore3fooIiE3barEiRNS_8SomeTypeEb"]
fn bar(a: i32, b: *mut (), c: bool);
}