Vendor dependencies
Let's see how I like this workflow.
This commit is contained in:
parent
34d1830413
commit
9c435dc440
7500 changed files with 1665121 additions and 99 deletions
51
vendor/cxxbridge-macro/src/clang.rs
vendored
Normal file
51
vendor/cxxbridge-macro/src/clang.rs
vendored
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
pub type Node = clang_ast::Node<Clang>;
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum Clang {
|
||||
NamespaceDecl(NamespaceDecl),
|
||||
EnumDecl(EnumDecl),
|
||||
EnumConstantDecl(EnumConstantDecl),
|
||||
ImplicitCastExpr,
|
||||
ConstantExpr(ConstantExpr),
|
||||
Unknown,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct NamespaceDecl {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<Box<str>>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct EnumDecl {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<Box<str>>,
|
||||
#[serde(
|
||||
rename = "fixedUnderlyingType",
|
||||
skip_serializing_if = "Option::is_none"
|
||||
)]
|
||||
pub fixed_underlying_type: Option<Type>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct EnumConstantDecl {
|
||||
pub name: Box<str>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct ConstantExpr {
|
||||
pub value: Box<str>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct Type {
|
||||
#[serde(rename = "qualType")]
|
||||
pub qual_type: Box<str>,
|
||||
#[serde(rename = "desugaredQualType", skip_serializing_if = "Option::is_none")]
|
||||
pub desugared_qual_type: Option<Box<str>>,
|
||||
}
|
||||
|
||||
#[cfg(all(test, target_pointer_width = "64"))]
|
||||
const _: [(); core::mem::size_of::<Node>()] = [(); 88];
|
||||
Loading…
Add table
Add a link
Reference in a new issue