Skip to content

Commit bce557d

Browse files
authored
Merge pull request #388 from RedisLabsModules/fix-the-deny-toml-file
Update the deny.toml file.
2 parents 41ccda7 + 805c074 commit bce557d

File tree

3 files changed

+51
-86
lines changed

3 files changed

+51
-86
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ jobs:
208208

209209
build-macos-x64:
210210
macos:
211-
xcode: 14.2.0
212-
resource_class: macos.x86.medium.gen2
211+
xcode: 15.4.0
212+
resource_class: macos.m1.large.gen1
213213
steps:
214214
- run: brew install openssl
215215
- build-steps

deny.toml

Lines changed: 47 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
# Root options
1313

14+
# The graph table configures how the dependency graph is constructed and thus
15+
# which crates the checks are performed against
16+
[graph]
1417
# If 1 or more target triples (and optionally, target_features) are specified,
1518
# only the specified targets will be checked when running `cargo deny check`.
1619
# This means, if a particular package is only ever used as a target specific
@@ -22,7 +25,7 @@
2225
targets = [
2326
# The triple can be any string, but only the target triples built in to
2427
# rustc (as of 1.40) can be checked against actual config expressions
25-
#{ triple = "x86_64-unknown-linux-musl" },
28+
#"x86_64-unknown-linux-musl",
2629
# You can also specify which target_features you promise are enabled for a
2730
# particular target. target_features are currently not validated against
2831
# the actual valid features supported by the target architecture.
@@ -46,6 +49,9 @@ no-default-features = false
4649
# If set, these feature will be enabled when collecting metadata. If `--features`
4750
# is specified on the cmd line they will take precedence over this option.
4851
#features = []
52+
53+
# The output table provides options for how/if diagnostics are outputted
54+
[output]
4955
# When outputting inclusion graphs in diagnostics that include features, this
5056
# option can be used to specify the depth at which feature edges will be added.
5157
# This option is included since the graphs can be quite large and the addition
@@ -57,34 +63,16 @@ feature-depth = 1
5763
# More documentation for the advisories section can be found here:
5864
# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html
5965
[advisories]
66+
version = 2
6067
# The path where the advisory database is cloned/fetched into
6168
db-path = "~/.cargo/advisory-db"
6269
# The url(s) of the advisory databases to use
6370
db-urls = ["https://github.com/rustsec/advisory-db"]
64-
# The lint level for security vulnerabilities
65-
vulnerability = "deny"
66-
# The lint level for unmaintained crates
67-
unmaintained = "warn"
68-
# The lint level for crates that have been yanked from their source registry
69-
yanked = "deny"
70-
# The lint level for crates with security notices. Note that as of
71-
# 2019-12-17 there are no security notice advisories in
72-
# https://github.com/rustsec/advisory-db
73-
notice = "deny"
7471
# A list of advisory IDs to ignore. Note that ignored advisories will still
7572
# output a note when they are encountered.
7673
ignore = [
7774
#"RUSTSEC-0000-0000",
7875
]
79-
# Threshold for security vulnerabilities, any vulnerability with a CVSS score
80-
# lower than the range specified will be ignored. Note that ignored advisories
81-
# will still output a note when they are encountered.
82-
# * None - CVSS Score 0.0
83-
# * Low - CVSS Score 0.1 - 3.9
84-
# * Medium - CVSS Score 4.0 - 6.9
85-
# * High - CVSS Score 7.0 - 8.9
86-
# * Critical - CVSS Score 9.0 - 10.0
87-
#severity-threshold =
8876

8977
# If this is true, then cargo deny will use the git executable to fetch advisory database.
9078
# If this is false, then it uses a built-in git library.
@@ -96,8 +84,6 @@ ignore = [
9684
# More documentation for the licenses section can be found here:
9785
# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
9886
[licenses]
99-
# The lint level for crates which do not have a detectable license
100-
unlicensed = "deny"
10187
# List of explicitly allowed licenses
10288
# See https://spdx.org/licenses/ for list of possible licenses
10389
# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
@@ -110,28 +96,6 @@ allow = [
11096
# "LicenseRef-RSALv2"
11197
#"Apache-2.0 WITH LLVM-exception",
11298
]
113-
# List of explicitly disallowed licenses
114-
# See https://spdx.org/licenses/ for list of possible licenses
115-
# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
116-
deny = [
117-
#"Nokia",
118-
]
119-
# Lint level for licenses considered copyleft
120-
copyleft = "deny"
121-
# Blanket approval or denial for OSI-approved or FSF Free/Libre licenses
122-
# * both - The license will be approved if it is both OSI-approved *AND* FSF
123-
# * either - The license will be approved if it is either OSI-approved *OR* FSF
124-
# * osi - The license will be approved if it is OSI approved
125-
# * fsf - The license will be approved if it is FSF Free
126-
# * osi-only - The license will be approved if it is OSI-approved *AND NOT* FSF
127-
# * fsf-only - The license will be approved if it is FSF *AND NOT* OSI-approved
128-
# * neither - This predicate is ignored and the default lint level is used
129-
allow-osi-fsf-free = "neither"
130-
# Lint level used when no other predicates are matched
131-
# 1. License isn't in the allow or deny lists
132-
# 2. License isn't copyleft
133-
# 3. License isn't OSI/FSF, or allow-osi-fsf-free = "neither"
134-
default = "deny"
13599
# The confidence threshold for detecting a license from license text.
136100
# The higher the value, the more closely the license text must be to the
137101
# canonical license text of a valid SPDX license file.
@@ -182,45 +146,45 @@ workspace-default-features = "allow"
182146
external-default-features = "allow"
183147
# List of crates that are allowed. Use with care!
184148
allow = [
185-
# { name = "libloading", version = "*" },
186-
# { name = "bindgen", version = "*" },
187-
# { name = "addroid-tzdata", version = "*" },
188-
# { name = "android_system_properties", version = "*" },
189-
# { name = "anyhow", version = "*" },
190-
# { name = "autocfg", version = "*" },
191-
# { name = "bitflags", version = "*" },
192-
# { name = "block-buffer", version = "*" },
193-
# { name = "bumpalo", version = "*" },
194-
# { name = "byteorder", version = "*" },
195-
# { name = "bytes", version = "*" },
196-
# { name = "cc", version = "*" },
197-
# { name = "cexpr", version = "*" },
198-
# { name = "cfg-if", version = "*" },
199-
# { name = "chrono", version = "*" },
200-
# { name = "clang-sys", version = "*" },
201-
# { name = "core-foundation-sys", version = "*" },
202-
# { name = "cpufeatures", version = "*" },
203-
# { name = "crypto-common", version = "*" },
204-
# { name = "data-encoding", version = "*" },
205-
# { name = "deranged", version = "*" },
206-
# { name = "digest", version = "*" },
207-
# { name = "either", version = "*" },
208-
# { name = "fnv", version = "*" },
209-
# { name = "form_urlencoded", version = "*" },
210-
# { name = "generic-array", version = "*" },
211-
# { name = "getrandom", version = "*" },
212-
# { name = "glob", version = "*" },
213-
# { name = "home", version = "*" },
214-
# { name = "http", version = "*" },
215-
# { name = "httparse", version = "*" },
216-
# { name = "iana-time-zone", version = "*" },
217-
# { name = "iana-time-zone-haiku", version = "*" },
218-
# { name = "idna", version = "*" },
219-
# { name = "itoa", version = "*" },
220-
# { name = "js-sys", version = "*" },
221-
# { name = "lazy_static", version = "*" },
222-
# { name = "lazycell", version = "*" },
223-
# { name = "libc", version = "*" }
149+
# { name = "libloading", version = "*" },
150+
# { name = "bindgen", version = "*" },
151+
# { name = "addroid-tzdata", version = "*" },
152+
# { name = "android_system_properties", version = "*" },
153+
# { name = "anyhow", version = "*" },
154+
# { name = "autocfg", version = "*" },
155+
# { name = "bitflags", version = "*" },
156+
# { name = "block-buffer", version = "*" },
157+
# { name = "bumpalo", version = "*" },
158+
# { name = "byteorder", version = "*" },
159+
# { name = "bytes", version = "*" },
160+
# { name = "cc", version = "*" },
161+
# { name = "cexpr", version = "*" },
162+
# { name = "cfg-if", version = "*" },
163+
# { name = "chrono", version = "*" },
164+
# { name = "clang-sys", version = "*" },
165+
# { name = "core-foundation-sys", version = "*" },
166+
# { name = "cpufeatures", version = "*" },
167+
# { name = "crypto-common", version = "*" },
168+
# { name = "data-encoding", version = "*" },
169+
# { name = "deranged", version = "*" },
170+
# { name = "digest", version = "*" },
171+
# { name = "either", version = "*" },
172+
# { name = "fnv", version = "*" },
173+
# { name = "form_urlencoded", version = "*" },
174+
# { name = "generic-array", version = "*" },
175+
# { name = "getrandom", version = "*" },
176+
# { name = "glob", version = "*" },
177+
# { name = "home", version = "*" },
178+
# { name = "http", version = "*" },
179+
# { name = "httparse", version = "*" },
180+
# { name = "iana-time-zone", version = "*" },
181+
# { name = "iana-time-zone-haiku", version = "*" },
182+
# { name = "idna", version = "*" },
183+
# { name = "itoa", version = "*" },
184+
# { name = "js-sys", version = "*" },
185+
# { name = "lazy_static", version = "*" },
186+
# { name = "lazycell", version = "*" },
187+
# { name = "libc", version = "*" }
224188
#{ name = "ansi_term", version = "=0.11.0" },
225189
]
226190
# List of crates to deny

src/logging.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ pub mod standard_log_implementation {
157157
pub fn setup_for_context(context: *mut raw::RedisModuleCtx) -> Result<(), SetLoggerError> {
158158
unsafe {
159159
LOGGER.0 = context;
160-
log::set_logger(&LOGGER).map(|()| log::set_max_level(log::LevelFilter::Trace))
160+
log::set_logger(&*std::ptr::addr_of!(LOGGER))
161+
.map(|()| log::set_max_level(log::LevelFilter::Trace))
161162
}
162163
}
163164

0 commit comments

Comments
 (0)