Rename to abi-generator

This commit is contained in:
Mark Poliakov 2024-03-12 12:45:31 +02:00
parent 28df46dec5
commit aab7ac67c3
6 changed files with 32 additions and 32 deletions

42
Cargo.lock generated
View File

@ -2,6 +2,26 @@
# It is not intended for manual editing. # It is not intended for manual editing.
version = 3 version = 3
[[package]]
name = "abi-generator"
version = "0.1.0"
dependencies = [
"proc-macro2",
"quote",
"syn",
"thiserror",
]
[[package]]
name = "abi-kernel-macros"
version = "0.1.0"
dependencies = [
"abi-generator",
"proc-macro2",
"quote",
"syn",
]
[[package]] [[package]]
name = "abi-lib" name = "abi-lib"
version = "0.1.0" version = "0.1.0"
@ -23,19 +43,9 @@ dependencies = [
name = "example-abi" name = "example-abi"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"abi-generator",
"abi-lib", "abi-lib",
"prettyplease", "prettyplease",
"syscall-generator",
]
[[package]]
name = "handler"
version = "0.1.0"
dependencies = [
"proc-macro2",
"quote",
"syn",
"syscall-generator",
] ]
[[package]] [[package]]
@ -83,16 +93,6 @@ dependencies = [
"unicode-ident", "unicode-ident",
] ]
[[package]]
name = "syscall-generator"
version = "0.1.0"
dependencies = [
"proc-macro2",
"quote",
"syn",
"thiserror",
]
[[package]] [[package]]
name = "thiserror" name = "thiserror"
version = "1.0.57" version = "1.0.57"

View File

@ -1,5 +1,5 @@
[package] [package]
name = "syscall-generator" name = "abi-generator"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
@ -10,4 +10,4 @@ syn = { version = "2.0.32", features = ["full"] }
thiserror = "1.0.47" thiserror = "1.0.47"
[workspace] [workspace]
members = [ "abi-lib","example-abi", "handler"] members = ["abi-lib", "example-abi", "abi-kernel-macros"]

View File

@ -1,5 +1,5 @@
[package] [package]
name = "handler" name = "abi-kernel-macros"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
@ -8,7 +8,7 @@ proc-macro2 = "1.0.78"
quote = "1.0.35" quote = "1.0.35"
syn = { version = "2.0.52", features = ["full"] } syn = { version = "2.0.52", features = ["full"] }
syscall-generator = { path = ".." } abi-generator = { path = ".." }
[lib] [lib]
proc-macro = true proc-macro = true

View File

@ -1,12 +1,12 @@
use proc_macro::TokenStream as TokenStream1; use abi_generator::{
use proc_macro2::Span;
use quote::quote;
use syn::{parse_macro_input, punctuated::Punctuated, Token};
use syscall_generator::{
abi::{ty::TypeWidth, Abi}, abi::{ty::TypeWidth, Abi},
syntax::UnwrapFancy, syntax::UnwrapFancy,
TargetEnv, TargetEnv,
}; };
use proc_macro::TokenStream as TokenStream1;
use proc_macro2::Span;
use quote::quote;
use syn::{parse_macro_input, punctuated::Punctuated, Token};
enum DispatcherAbiPath { enum DispatcherAbiPath {
Env(syn::LitStr), Env(syn::LitStr),

View File

@ -7,5 +7,5 @@ edition = "2021"
abi-lib = { path = "../abi-lib" } abi-lib = { path = "../abi-lib" }
[build-dependencies] [build-dependencies]
syscall-generator = { path = ".." } abi-generator = { path = ".." }
prettyplease = "0.2.15" prettyplease = "0.2.15"

View File

@ -1,6 +1,6 @@
use std::{env, path::Path}; use std::{env, path::Path};
use syscall_generator::{ use abi_generator::{
abi::{ty::TypeWidth, AbiBuilder}, abi::{ty::TypeWidth, AbiBuilder},
syntax::UnwrapFancy, syntax::UnwrapFancy,
TargetEnv, TargetEnv,