Initialize Cargo workspace with wraith-core, wraith, and wraith-napi crates
- Workspace root Cargo.toml with three crate members - wraith-core: library with feature flags (tls, iroh, acme), core deps (russh, tokio, tracing, anyhow, thiserror, tokio-util), module skeleton (transport, client, server, auth, socks5, error) - wraith: binary crate depending on wraith-core with clap derive - wraith-napi: cdylib crate depending on wraith-core, napi, napi-derive - .gitignore for target/ and node_modules/
This commit is contained in:
12
crates/wraith-napi/Cargo.toml
Normal file
12
crates/wraith-napi/Cargo.toml
Normal file
@@ -0,0 +1,12 @@
|
||||
[package]
|
||||
name = "wraith-napi"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
wraith-core = { path = "../wraith-core" }
|
||||
napi = "3"
|
||||
napi-derive = "3"
|
||||
3
crates/wraith-napi/src/lib.rs
Normal file
3
crates/wraith-napi/src/lib.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
#[allow(unused_imports)]
|
||||
#[macro_use]
|
||||
extern crate napi_derive;
|
||||
Reference in New Issue
Block a user