-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathCargo.toml
More file actions
58 lines (52 loc) · 1.69 KB
/
Cargo.toml
File metadata and controls
58 lines (52 loc) · 1.69 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[package]
name = "stringzilla"
version = "4.6.0"
authors = ["Ash Vardanian <1983160+ashvardanian@users.noreply.github.com>"]
description = "Search, hash, sort, fingerprint, and fuzzy-match strings faster via SWAR, SIMD, and GPGPU"
edition = "2021"
license = "Apache-2.0"
publish = true
repository = "https://github.com/ashvardanian/stringzilla"
documentation = "https://docs.rs/stringzilla"
homepage = "https://ashvardanian.com/posts/stringzilla/"
keywords = ["simd", "search", "retrieval", "hash", "sort"]
categories = [
"text-processing",
"hardware-support",
"no-std",
"wasm",
"external-ffi-bindings",
]
include = ["rust/**", "c/**", "include/**", "fork_union/include/**", "build.rs"]
[lib]
name = "stringzilla"
path = "rust/lib.rs"
[features]
default = ["std"]
std = []
cpus = [
"std", # std is required for multi-threaded backend
"allocator-api2",
"stringtape",
] # Multi-threaded CPU backend (StringZillas)
cuda = ["std", "cpus"] # CUDA GPU backend (includes multi-threaded CPU backend)
rocm = ["std", "cpus"] # ROCm GPU backend (includes multi-threaded CPU backend)
[dependencies]
allocator-api2 = { version = "0.3.0", optional = true }
stringtape = { version = "2.4.1", optional = true }
[build-dependencies]
cc = "1.2.47"
[lints.clippy]
# Catch platform-specific type issues like `c_char` differences
cast-sign-loss = "warn"
# Catch potential FFI issues
not-unsafe-ptr-arg-deref = "warn"
# Catch undefined behavior with pointers
invalid_null_ptr_usage = "warn"
# Catch transmute issues
transmute_ptr_to_ptr = "warn"
[lints.rust]
# Catch ABI mismatches in FFI
improper_ctypes = "warn"
# Catch platform-specific code that might fail on other targets
unexpected_cfgs = "warn"