forked from RedisLabsModules/redismodule-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
89 lines (73 loc) · 1.73 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[package]
name = "redis-module"
version = "99.99.99"
authors = ["Gavrie Philipson <[email protected]>", "Guy Korland <[email protected]>"]
edition = "2021"
build = "build.rs"
description = "A toolkit for building Redis modules in Rust"
license = "BSD-3-Clause"
repository = "https://github.com/RedisLabsModules/redismodule-rs"
readme = "README.md"
keywords = ["redis", "plugin"]
categories = ["database", "api-bindings"]
[[example]]
name = "hello"
crate-type = ["cdylib"]
[[example]]
name = "keys_pos"
crate-type = ["cdylib"]
[[example]]
name = "lists"
crate-type = ["cdylib"]
[[example]]
name = "timer"
crate-type = ["cdylib"]
required-features = ["experimental-api"]
[[example]]
name = "threads"
crate-type = ["cdylib"]
required-features = ["experimental-api"]
[[example]]
name = "block"
crate-type = ["cdylib"]
required-features = ["experimental-api"]
[[example]]
name = "data_type"
crate-type = ["cdylib"]
[[example]]
name = "load_unload"
crate-type = ["cdylib"]
[[example]]
name = "events"
crate-type = ["cdylib"]
required-features = ["experimental-api"]
[[example]]
name = "test_helper"
crate-type = ["cdylib"]
required-features = ["test","experimental-api"]
[[example]]
name = "info"
crate-type = ["cdylib"]
required-features = []
[dependencies]
bitflags = "1.2"
libc = "0.2"
enum-primitive-derive = "^0.1"
num-traits = "^0.2"
regex = "1"
strum_macros = "0.24"
#failure = "0.1"
backtrace = "0.3"
[dev-dependencies]
anyhow = "1.0.38"
redis = "0.21.0"
[build-dependencies]
bindgen = "0.60"
cc = "1.0"
[features]
default = []
experimental-api = []
# Workaround to allow cfg(feature = "test") in dependencies:
# https://github.com/rust-lang/rust/issues/59168#issuecomment-472653680
# This requires running the tests with `--features test`
test = []