This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
141 lines (113 loc) · 3.7 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[package]
name = "devela_depend"
description = "Optional external dependencies for `devela`."
version = "0.5.0"
edition = "2021"
# sync with readme & .github/workflows/check.yml
rust-version = "1.72.1" # required by: hashbrown: ahash
authors = ["José Luis Cruz <[email protected]>"]
repository = "https://github.com/andamira/devela_depend"
documentation = "https://docs.rs/devela_depend"
license = "MIT OR Apache-2.0"
include = [
"/src/**/*.rs",
"/src/**/*.md",
"/Cargo.toml",
"/README.md",
"/LICENSE-*",
]
categories = ["development-tools", "rust-patterns", "no-std::no-alloc"]
keywords = []
publish = true
# ------------------------------------------------------------------------------
# Features are grouped in the following categories:
# - Miscellaneous
# - Environment
# - Module
# - Safety
# - Nightly
# - Dependency
[features]
#* miscellaneous features *#
# default = [] # no default features
# enables the most complete version of the documentation:
docsrs = ["nightly", "all", "std", "unsafe"]
#* environment features *
std = [ # disables `no_std` compatibility and enables `std` functionality
"alloc",
"atomic?/std", "bytemuck?/extern_crate_std", "memchr?/std", "rand_core?/std",
"wide?/std",
]
alloc = [ # enables `alloc` functionality
"bytemuck?/extern_crate_alloc", "memchr?/alloc", "rand_core?/alloc"
]
no_std = [ # enables functionality incompatible with or substitute of `std`
]
#* module features *
all = [ # enables all the external dependencies
"atomic",
"bytemuck",
"const-str",
"crossterm", "crossterm_bracketed_paste", "crossterm_events",
"hashbrown",
"libm",
"memchr",
"miniquad",
"portable-atomic",
"rand_core", "rand_core_getrandom", "rand_core_serde",
"unicode-segmentation",
"unicode-width",
"wide",
]
#* safety features *#
unsafe = [] # enables `unsafe` features in this crate
safe = [] # forbids `unsafe` in this crate
#* nightly features *#
nightly = []
#* dependency features *#
crossterm_bracketed_paste = ["crossterm?/bracketed-paste"]
crossterm_events = ["crossterm?/events"]
rand_core_getrandom = ["rand_core?/getrandom"]
rand_core_serde = ["rand_core?/serde"]
# ------------------------------------------------------------------------------
[dependencies]
# These optional dependencies must copied as `devela` optional dependencies too.
const-str = { version = "0.5.6", default-features = false, optional = true }
libm = { version = "0.2.8", default-features = false, optional = true }
memchr = { version = "2.7.1", default-features = false, optional = true }
miniquad = { version = "0.4.0", default-features = false, optional = true }
rand_core = { version = "0.6.4", default-features = false, optional = true }
unicode-segmentation = { version = "1.10.1", default-features = false, optional = true }
unicode-width = { version = "0.1.11", default-features = false, optional = true }
wide = { version = "0.7.15", optional = true, default-features = false }
[dependencies.atomic]
version = "0.6.0"
optional = true
default-features = false
features = ["fallback"]
[dependencies.bytemuck]
version = "1.14.0"
optional = true
default-features = false
features = ["align_offset", "min_const_generics", "must_cast", "zeroable_maybe_uninit"]
[dependencies.crossterm]
version = "0.27.0"
optional = true
default-features = false
features = ["windows"]
[dependencies.hashbrown]
version = "0.14.1"
optional = true
default-features = false
features = ["ahash", "inline-more"]
[dependencies.portable-atomic]
version = "1.4.3"
optional = true
default-features = false
features = ["fallback", "float"]
# ------------------------------------------------------------------------------
[package.metadata.docs.rs]
no-default-features = true
features = ["docsrs"]
[badges]
maintenance = { status = "deprecated" }