-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
31 lines (27 loc) · 1.4 KB
/
Cargo.toml
File metadata and controls
31 lines (27 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[package]
name = "napi-rust-demo"
version = "0.1.0"
edition = "2021"
authors = ["MongoExpUser <MongoExpUser@users.noreply.github.com>"]
description = "Rust Container Project for NAPI-Rust"
documentation = "https://github.com/MongoExpUser/Debian-Based-NAPI-Rust-Addons/blob/main/README.md"
rust-version = "1.62.0"
license = "MIT"
keywords = ["napi", "rust", "node.js"]
categories = ["napi-rust"]
build = "build.rs" # or build = "src/build.rs"
[lib]
crate-type = ["cdylib"]
# crate-type = ["rlib"] # rlib (rust library): The default format for Rust-to-Rust dependency.
# crate-type = ["dylib"] # dylib (rust dynamic library): A dynamically/shared linked library (.so, .dylib, .dll) with an unstable ABI, suitable for linking Rust code with other Rust code at runtime.
# crate-type = ["cdylib"] # cdylib (c dynamic library): A dynamically/shared library (.so, .dylib, .dll) designed to be loaded by non-Rust languages (like C/C++ or Python), requiring #[no_mangle] and extern "C" on public functions.
# crate-type = ["staticlib"] # staticlib (static library): A static system library (.a, .lib) containing all Rust code and dependencies, useful for embedding/linking into C/C++ applications or other system projects.
# path = "src/lib.rs" # The source file of the target
[dependencies]
time = "0.3.11"
regex = "1.6.0"
rand = "0.8.5"
napi = "2"
napi-derive = "2"
[build-dependencies]
napi-build = "1"