-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
47 lines (42 loc) · 1005 Bytes
/
Cargo.toml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[package]
name = "pynanoid"
version = "0.1.1"
edition = "2021"
license-file = "LICENSE"
readme = "README.md"
repository = "https://github.com/arunanshub/pynanoid"
categories = ["algorithms"]
description = "A tiny, secure, URL-friendly, unique string ID generator."
# only the listed files are included in the source distribution (sdist)
include = [
"/pyproject.toml",
"/README.md",
"/LICENSE",
"/src",
"/rust",
"/benches",
"!__pycache__",
"!tests/.hypothesis",
"!tests/.pytest_cache",
"!*.so",
]
[dependencies]
pyo3 = { version = "0.23.1", features = ["abi3-py39"] }
rand = "0.8.5"
thiserror = "2.0.3"
[dev-dependencies]
divan = "0.1.15"
proptest = "1.5.0"
[lib]
# name = "nanoid"
path = "rust/lib.rs"
# "cdylib" is necessary to produce a shared library for Python to import from.
# "rlib" is necessary to execute the benches.
crate-type = ["cdylib", "rlib"]
[profile.release]
codegen-units = 1
lto = true
strip = true
[[bench]]
name = "basic"
harness = false