prometheus-client-mmap 0.20.2 → 0.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/fast_mmaped_file_rs/extconf.rb +21 -15
- data/lib/prometheus/client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a044be30f61b4d49820eb47e00c524ba90c3bb15ad8f6ddb97c0106eecda2839
|
4
|
+
data.tar.gz: aa953907ebd58fe257cb0f894e8d997746c61f38e1b45e3500e288fc5a3c54e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c499ccd0dc2442f9a5ffd0cab890a1f462a0f086bf818cb2af61c9533170fe6f0d6c5a84124053838c4be0a180ec8be29c114de45785c6066841fe88282628d0
|
7
|
+
data.tar.gz: 4bac46af2fff3c5d2332199c69ba78e625015bf5820089e295462a6d22d4f7ecab023ae138628f9e582c4738e97a4d77d939082993625a3d5a9a5ff9a448feb8
|
@@ -1,24 +1,30 @@
|
|
1
1
|
require "mkmf"
|
2
2
|
require "rb_sys/mkmf"
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
if find_executable('rustc')
|
5
|
+
create_rust_makefile("fast_mmaped_file_rs") do |r|
|
6
|
+
r.auto_install_rust_toolchain = false
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
if enable_config('fail-on-warning')
|
9
|
+
r.extra_rustflags = ["-Dwarnings"]
|
10
|
+
end
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
12
|
+
if enable_config('debug')
|
13
|
+
r.profile = :dev
|
14
|
+
end
|
15
|
+
|
16
|
+
if enable_config('address-sanitizer')
|
17
|
+
r.extra_rustflags = ["-Zsanitizer=address"]
|
18
|
+
end
|
14
19
|
|
15
|
-
|
16
|
-
|
20
|
+
# `rb_sys/mkmf` passes all arguments after `--` directly to `cargo rustc`.
|
21
|
+
# We use this awful hack to keep compatibility with existing flags used by
|
22
|
+
# the C implementation.
|
23
|
+
trimmed_argv = ARGV.take_while { |arg| arg != "--" }
|
24
|
+
ARGV = trimmed_argv
|
17
25
|
end
|
26
|
+
else
|
27
|
+
puts 'rustc not found, skipping Rust extension.'
|
18
28
|
|
19
|
-
|
20
|
-
# We use this awful hack to keep compatibility with existing flags used by
|
21
|
-
# the C implementation.
|
22
|
-
trimmed_argv = ARGV.take_while { |arg| arg != "--" }
|
23
|
-
ARGV = trimmed_argv
|
29
|
+
File.write('Makefile', dummy_makefile($srcdir).join(''))
|
24
30
|
end
|