zig_example 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/mkmf.rb +2734 -0
- data/ext/openssl/openssl_missing.c +40 -0
- data/ext/openssl/openssl_missing.h +238 -0
- data/ext/openssl/ossl.c +1295 -0
- data/ext/openssl/ossl.h +201 -0
- data/ext/openssl/ossl_asn1.c +1891 -0
- data/ext/openssl/ossl_asn1.h +62 -0
- data/ext/openssl/ossl_bio.c +42 -0
- data/ext/openssl/ossl_bio.h +16 -0
- data/ext/openssl/ossl_bn.c +1344 -0
- data/ext/openssl/ossl_bn.h +26 -0
- data/ext/openssl/ossl_cipher.c +1074 -0
- data/ext/openssl/ossl_cipher.h +20 -0
- data/ext/openssl/ossl_config.c +460 -0
- data/ext/openssl/ossl_config.h +16 -0
- data/ext/openssl/ossl_digest.c +425 -0
- data/ext/openssl/ossl_digest.h +20 -0
- data/ext/openssl/ossl_engine.c +568 -0
- data/ext/openssl/ossl_engine.h +19 -0
- data/ext/openssl/ossl_hmac.c +310 -0
- data/ext/openssl/ossl_hmac.h +18 -0
- data/ext/openssl/ossl_kdf.c +311 -0
- data/ext/openssl/ossl_kdf.h +6 -0
- data/ext/openssl/ossl_ns_spki.c +405 -0
- data/ext/openssl/ossl_ns_spki.h +19 -0
- data/ext/openssl/ossl_ocsp.c +1965 -0
- data/ext/openssl/ossl_ocsp.h +23 -0
- data/ext/openssl/ossl_pkcs12.c +275 -0
- data/ext/openssl/ossl_pkcs12.h +13 -0
- data/ext/openssl/ossl_pkcs7.c +1081 -0
- data/ext/openssl/ossl_pkcs7.h +36 -0
- data/ext/openssl/ossl_pkey.c +1624 -0
- data/ext/openssl/ossl_pkey.h +204 -0
- data/ext/openssl/ossl_pkey_dh.c +440 -0
- data/ext/openssl/ossl_pkey_dsa.c +359 -0
- data/ext/openssl/ossl_pkey_ec.c +1655 -0
- data/ext/openssl/ossl_pkey_rsa.c +579 -0
- data/ext/openssl/ossl_rand.c +200 -0
- data/ext/openssl/ossl_rand.h +18 -0
- data/ext/openssl/ossl_ssl.c +3142 -0
- data/ext/openssl/ossl_ssl.h +36 -0
- data/ext/openssl/ossl_ssl_session.c +331 -0
- data/ext/openssl/ossl_ts.c +1539 -0
- data/ext/openssl/ossl_ts.h +16 -0
- data/ext/openssl/ossl_x509.c +256 -0
- data/ext/openssl/ossl_x509.h +115 -0
- data/ext/openssl/ossl_x509attr.c +324 -0
- data/ext/openssl/ossl_x509cert.c +1002 -0
- data/ext/openssl/ossl_x509crl.c +545 -0
- data/ext/openssl/ossl_x509ext.c +490 -0
- data/ext/openssl/ossl_x509name.c +597 -0
- data/ext/openssl/ossl_x509req.c +444 -0
- data/ext/openssl/ossl_x509revoked.c +300 -0
- data/ext/openssl/ossl_x509store.c +986 -0
- data/ext/zigrb_100doors/build.zig +0 -12
- data/ext/zigrb_100doors/extconf.rb +2 -19
- data/ext/zigrb_ackermann/build.zig +0 -12
- data/ext/zigrb_ackermann/extconf.rb +2 -19
- data/ext/zigrb_lucas_lehmer/build.zig +0 -12
- data/ext/zigrb_lucas_lehmer/extconf.rb +2 -19
- data/lib/zig_example/version.rb +1 -1
- metadata +56 -2
@@ -4,10 +4,6 @@ pub fn build(b: *std.Build) void {
|
|
4
4
|
const optimize = b.standardOptimizeOption(.{});
|
5
5
|
const target = b.standardTargetOptions(.{});
|
6
6
|
|
7
|
-
var rubylibdir = std.os.getenv("RUBYLIBDIR") orelse "";
|
8
|
-
var rubyhdrdir = std.os.getenv("RUBYHDRDIR") orelse "";
|
9
|
-
var rubyarchhdrdir = std.os.getenv("RUBYARCHHDRDIR") orelse "";
|
10
|
-
|
11
7
|
////////////////////////////////////////////////////////////////
|
12
8
|
// lib
|
13
9
|
|
@@ -18,10 +14,6 @@ pub fn build(b: *std.Build) void {
|
|
18
14
|
.optimize = optimize,
|
19
15
|
});
|
20
16
|
|
21
|
-
lib.addLibraryPath(rubylibdir);
|
22
|
-
lib.addIncludePath(rubyhdrdir);
|
23
|
-
lib.addIncludePath(rubyarchhdrdir);
|
24
|
-
|
25
17
|
lib.linkSystemLibrary("ruby");
|
26
18
|
lib.linkSystemLibrary("c");
|
27
19
|
|
@@ -36,10 +28,6 @@ pub fn build(b: *std.Build) void {
|
|
36
28
|
.optimize = optimize,
|
37
29
|
});
|
38
30
|
|
39
|
-
unit_tests.addLibraryPath(rubylibdir);
|
40
|
-
unit_tests.addIncludePath(rubyhdrdir);
|
41
|
-
unit_tests.addIncludePath(rubyarchhdrdir);
|
42
|
-
|
43
31
|
unit_tests.linkSystemLibrary("ruby");
|
44
32
|
unit_tests.linkSystemLibrary("c");
|
45
33
|
|
@@ -1,20 +1,3 @@
|
|
1
|
-
|
1
|
+
require_relative '../mkmf'
|
2
2
|
|
3
|
-
|
4
|
-
$srcs = ['']
|
5
|
-
TARGET = 'libzigrb_100doors'
|
6
|
-
|
7
|
-
create_makefile TARGET
|
8
|
-
File.open('Makefile', 'a') do |f|
|
9
|
-
f.puts <<~MFILE
|
10
|
-
|
11
|
-
clean: clean-zig
|
12
|
-
clean-zig:
|
13
|
-
\t-$(Q)$(RM) -rf zig-cache zig-out
|
14
|
-
|
15
|
-
#{TARGET}.so: Makefile build.zig src/main.zig
|
16
|
-
\tenv -u DESTDIR RUBYLIBDIR=$(rubylibdir) RUBYHDRDIR=$(rubyhdrdir) RUBYARCHHDRDIR=$(rubyarchhdrdir) zig build -Doptimize=ReleaseSafe test install
|
17
|
-
\tcp -v zig-out/lib/#{TARGET}.so .
|
18
|
-
|
19
|
-
MFILE
|
20
|
-
end
|
3
|
+
create_makefile 'libzigrb_100doors'
|
@@ -4,10 +4,6 @@ pub fn build(b: *std.Build) void {
|
|
4
4
|
const optimize = b.standardOptimizeOption(.{});
|
5
5
|
const target = b.standardTargetOptions(.{});
|
6
6
|
|
7
|
-
var rubylibdir = std.os.getenv("RUBYLIBDIR") orelse "";
|
8
|
-
var rubyhdrdir = std.os.getenv("RUBYHDRDIR") orelse "";
|
9
|
-
var rubyarchhdrdir = std.os.getenv("RUBYARCHHDRDIR") orelse "";
|
10
|
-
|
11
7
|
////////////////////////////////////////////////////////////////
|
12
8
|
// lib
|
13
9
|
|
@@ -18,10 +14,6 @@ pub fn build(b: *std.Build) void {
|
|
18
14
|
.optimize = optimize,
|
19
15
|
});
|
20
16
|
|
21
|
-
lib.addLibraryPath(rubylibdir);
|
22
|
-
lib.addIncludePath(rubyhdrdir);
|
23
|
-
lib.addIncludePath(rubyarchhdrdir);
|
24
|
-
|
25
17
|
lib.linkSystemLibrary("ruby");
|
26
18
|
lib.linkSystemLibrary("c");
|
27
19
|
|
@@ -36,10 +28,6 @@ pub fn build(b: *std.Build) void {
|
|
36
28
|
.optimize = optimize,
|
37
29
|
});
|
38
30
|
|
39
|
-
unit_tests.addLibraryPath(rubylibdir);
|
40
|
-
unit_tests.addIncludePath(rubyhdrdir);
|
41
|
-
unit_tests.addIncludePath(rubyarchhdrdir);
|
42
|
-
|
43
31
|
unit_tests.linkSystemLibrary("ruby");
|
44
32
|
unit_tests.linkSystemLibrary("c");
|
45
33
|
|
@@ -1,20 +1,3 @@
|
|
1
|
-
|
1
|
+
require_relative '../mkmf'
|
2
2
|
|
3
|
-
|
4
|
-
$srcs = ['']
|
5
|
-
TARGET = 'libzigrb_ackermann'
|
6
|
-
|
7
|
-
create_makefile TARGET
|
8
|
-
File.open('Makefile', 'a') do |f|
|
9
|
-
f.puts <<~MFILE
|
10
|
-
|
11
|
-
clean: clean-zig
|
12
|
-
clean-zig:
|
13
|
-
\t-$(Q)$(RM) -rf zig-cache zig-out
|
14
|
-
|
15
|
-
#{TARGET}.so: Makefile build.zig src/main.zig
|
16
|
-
\tenv -u DESTDIR RUBYLIBDIR=$(rubylibdir) RUBYHDRDIR=$(rubyhdrdir) RUBYARCHHDRDIR=$(rubyarchhdrdir) zig build -Doptimize=ReleaseSafe test install
|
17
|
-
\tcp -v zig-out/lib/#{TARGET}.so .
|
18
|
-
|
19
|
-
MFILE
|
20
|
-
end
|
3
|
+
create_makefile 'libzigrb_ackermann'
|
@@ -4,10 +4,6 @@ pub fn build(b: *std.Build) void {
|
|
4
4
|
const optimize = b.standardOptimizeOption(.{});
|
5
5
|
const target = b.standardTargetOptions(.{});
|
6
6
|
|
7
|
-
var rubylibdir = std.os.getenv("RUBYLIBDIR") orelse "";
|
8
|
-
var rubyhdrdir = std.os.getenv("RUBYHDRDIR") orelse "";
|
9
|
-
var rubyarchhdrdir = std.os.getenv("RUBYARCHHDRDIR") orelse "";
|
10
|
-
|
11
7
|
////////////////////////////////////////////////////////////////
|
12
8
|
// lib
|
13
9
|
|
@@ -28,10 +24,6 @@ pub fn build(b: *std.Build) void {
|
|
28
24
|
.optimize = optimize,
|
29
25
|
});
|
30
26
|
|
31
|
-
lib.addLibraryPath(rubylibdir);
|
32
|
-
lib.addIncludePath(rubyhdrdir);
|
33
|
-
lib.addIncludePath(rubyarchhdrdir);
|
34
|
-
|
35
27
|
lib.linkSystemLibrary("ruby");
|
36
28
|
lib.linkSystemLibrary("c");
|
37
29
|
|
@@ -49,10 +41,6 @@ pub fn build(b: *std.Build) void {
|
|
49
41
|
.optimize = optimize,
|
50
42
|
});
|
51
43
|
|
52
|
-
unit_tests.addLibraryPath(rubylibdir);
|
53
|
-
unit_tests.addIncludePath(rubyhdrdir);
|
54
|
-
unit_tests.addIncludePath(rubyarchhdrdir);
|
55
|
-
|
56
44
|
unit_tests.linkSystemLibrary("ruby");
|
57
45
|
unit_tests.linkSystemLibrary("c");
|
58
46
|
|
@@ -1,20 +1,3 @@
|
|
1
|
-
|
1
|
+
require_relative '../mkmf'
|
2
2
|
|
3
|
-
|
4
|
-
$srcs = ['']
|
5
|
-
TARGET = 'libzigrb_lucas_lehmer'
|
6
|
-
|
7
|
-
create_makefile TARGET
|
8
|
-
File.open('Makefile', 'a') do |f|
|
9
|
-
f.puts <<~MFILE
|
10
|
-
|
11
|
-
clean: clean-zig
|
12
|
-
clean-zig:
|
13
|
-
\t-$(Q)$(RM) -rf zig-cache zig-out
|
14
|
-
|
15
|
-
#{TARGET}.so: Makefile build.zig src/*
|
16
|
-
\tenv -u DESTDIR RUBYLIBDIR=$(rubylibdir) RUBYHDRDIR=$(rubyhdrdir) RUBYARCHHDRDIR=$(rubyarchhdrdir) zig build -Doptimize=ReleaseSafe test install
|
17
|
-
\tcp -v zig-out/lib/#{TARGET}.so .
|
18
|
-
|
19
|
-
MFILE
|
20
|
-
end
|
3
|
+
create_makefile 'libzigrb_lucas_lehmer'
|
data/lib/zig_example/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zig_example
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank J. Cameron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -20,6 +20,60 @@ extensions:
|
|
20
20
|
- ext/zigrb_lucas_lehmer/extconf.rb
|
21
21
|
extra_rdoc_files: []
|
22
22
|
files:
|
23
|
+
- ext/mkmf.rb
|
24
|
+
- ext/openssl/openssl_missing.c
|
25
|
+
- ext/openssl/openssl_missing.h
|
26
|
+
- ext/openssl/ossl.c
|
27
|
+
- ext/openssl/ossl.h
|
28
|
+
- ext/openssl/ossl_asn1.c
|
29
|
+
- ext/openssl/ossl_asn1.h
|
30
|
+
- ext/openssl/ossl_bio.c
|
31
|
+
- ext/openssl/ossl_bio.h
|
32
|
+
- ext/openssl/ossl_bn.c
|
33
|
+
- ext/openssl/ossl_bn.h
|
34
|
+
- ext/openssl/ossl_cipher.c
|
35
|
+
- ext/openssl/ossl_cipher.h
|
36
|
+
- ext/openssl/ossl_config.c
|
37
|
+
- ext/openssl/ossl_config.h
|
38
|
+
- ext/openssl/ossl_digest.c
|
39
|
+
- ext/openssl/ossl_digest.h
|
40
|
+
- ext/openssl/ossl_engine.c
|
41
|
+
- ext/openssl/ossl_engine.h
|
42
|
+
- ext/openssl/ossl_hmac.c
|
43
|
+
- ext/openssl/ossl_hmac.h
|
44
|
+
- ext/openssl/ossl_kdf.c
|
45
|
+
- ext/openssl/ossl_kdf.h
|
46
|
+
- ext/openssl/ossl_ns_spki.c
|
47
|
+
- ext/openssl/ossl_ns_spki.h
|
48
|
+
- ext/openssl/ossl_ocsp.c
|
49
|
+
- ext/openssl/ossl_ocsp.h
|
50
|
+
- ext/openssl/ossl_pkcs12.c
|
51
|
+
- ext/openssl/ossl_pkcs12.h
|
52
|
+
- ext/openssl/ossl_pkcs7.c
|
53
|
+
- ext/openssl/ossl_pkcs7.h
|
54
|
+
- ext/openssl/ossl_pkey.c
|
55
|
+
- ext/openssl/ossl_pkey.h
|
56
|
+
- ext/openssl/ossl_pkey_dh.c
|
57
|
+
- ext/openssl/ossl_pkey_dsa.c
|
58
|
+
- ext/openssl/ossl_pkey_ec.c
|
59
|
+
- ext/openssl/ossl_pkey_rsa.c
|
60
|
+
- ext/openssl/ossl_rand.c
|
61
|
+
- ext/openssl/ossl_rand.h
|
62
|
+
- ext/openssl/ossl_ssl.c
|
63
|
+
- ext/openssl/ossl_ssl.h
|
64
|
+
- ext/openssl/ossl_ssl_session.c
|
65
|
+
- ext/openssl/ossl_ts.c
|
66
|
+
- ext/openssl/ossl_ts.h
|
67
|
+
- ext/openssl/ossl_x509.c
|
68
|
+
- ext/openssl/ossl_x509.h
|
69
|
+
- ext/openssl/ossl_x509attr.c
|
70
|
+
- ext/openssl/ossl_x509cert.c
|
71
|
+
- ext/openssl/ossl_x509crl.c
|
72
|
+
- ext/openssl/ossl_x509ext.c
|
73
|
+
- ext/openssl/ossl_x509name.c
|
74
|
+
- ext/openssl/ossl_x509req.c
|
75
|
+
- ext/openssl/ossl_x509revoked.c
|
76
|
+
- ext/openssl/ossl_x509store.c
|
23
77
|
- ext/zigrb_100doors/build.zig
|
24
78
|
- ext/zigrb_100doors/extconf.rb
|
25
79
|
- ext/zigrb_100doors/src/main.zig
|