itsi-scheduler 0.1.0
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 +7 -0
- data/.rubocop.yml +8 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/Cargo.lock +745 -0
- data/Cargo.toml +3 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +22 -0
- data/ext/itsi_error/Cargo.lock +368 -0
- data/ext/itsi_error/Cargo.toml +9 -0
- data/ext/itsi_error/src/lib.rs +49 -0
- data/ext/itsi_rb_helpers/Cargo.lock +355 -0
- data/ext/itsi_rb_helpers/Cargo.toml +8 -0
- data/ext/itsi_rb_helpers/src/lib.rs +98 -0
- data/ext/itsi_scheduler/Cargo.toml +16 -0
- data/ext/itsi_scheduler/extconf.rb +6 -0
- data/ext/itsi_scheduler/src/lib.rs +17 -0
- data/ext/itsi_tracing/Cargo.lock +274 -0
- data/ext/itsi_tracing/Cargo.toml +12 -0
- data/ext/itsi_tracing/src/lib.rs +11 -0
- data/lib/itsi/scheduler/version.rb +7 -0
- data/lib/itsi/scheduler.rb +11 -0
- data/sig/itsi_scheduler.rbs +4 -0
- metadata +96 -0
@@ -0,0 +1,274 @@
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
2
|
+
# It is not intended for manual editing.
|
3
|
+
version = 4
|
4
|
+
|
5
|
+
[[package]]
|
6
|
+
name = "aho-corasick"
|
7
|
+
version = "1.1.3"
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
9
|
+
checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
|
10
|
+
dependencies = [
|
11
|
+
"memchr",
|
12
|
+
]
|
13
|
+
|
14
|
+
[[package]]
|
15
|
+
name = "cfg-if"
|
16
|
+
version = "1.0.0"
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
18
|
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
19
|
+
|
20
|
+
[[package]]
|
21
|
+
name = "itsi_tracing"
|
22
|
+
version = "0.1.0"
|
23
|
+
dependencies = [
|
24
|
+
"tracing",
|
25
|
+
"tracing-subscriber",
|
26
|
+
]
|
27
|
+
|
28
|
+
[[package]]
|
29
|
+
name = "lazy_static"
|
30
|
+
version = "1.5.0"
|
31
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
32
|
+
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
33
|
+
|
34
|
+
[[package]]
|
35
|
+
name = "log"
|
36
|
+
version = "0.4.26"
|
37
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
38
|
+
checksum = "30bde2b3dc3671ae49d8e2e9f044c7c005836e7a023ee57cffa25ab82764bb9e"
|
39
|
+
|
40
|
+
[[package]]
|
41
|
+
name = "matchers"
|
42
|
+
version = "0.1.0"
|
43
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
44
|
+
checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558"
|
45
|
+
dependencies = [
|
46
|
+
"regex-automata 0.1.10",
|
47
|
+
]
|
48
|
+
|
49
|
+
[[package]]
|
50
|
+
name = "memchr"
|
51
|
+
version = "2.7.4"
|
52
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
53
|
+
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
54
|
+
|
55
|
+
[[package]]
|
56
|
+
name = "nu-ansi-term"
|
57
|
+
version = "0.46.0"
|
58
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
59
|
+
checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84"
|
60
|
+
dependencies = [
|
61
|
+
"overload",
|
62
|
+
"winapi",
|
63
|
+
]
|
64
|
+
|
65
|
+
[[package]]
|
66
|
+
name = "once_cell"
|
67
|
+
version = "1.20.3"
|
68
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
69
|
+
checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e"
|
70
|
+
|
71
|
+
[[package]]
|
72
|
+
name = "overload"
|
73
|
+
version = "0.1.1"
|
74
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
75
|
+
checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"
|
76
|
+
|
77
|
+
[[package]]
|
78
|
+
name = "pin-project-lite"
|
79
|
+
version = "0.2.16"
|
80
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
81
|
+
checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
|
82
|
+
|
83
|
+
[[package]]
|
84
|
+
name = "proc-macro2"
|
85
|
+
version = "1.0.93"
|
86
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
87
|
+
checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99"
|
88
|
+
dependencies = [
|
89
|
+
"unicode-ident",
|
90
|
+
]
|
91
|
+
|
92
|
+
[[package]]
|
93
|
+
name = "quote"
|
94
|
+
version = "1.0.38"
|
95
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
96
|
+
checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc"
|
97
|
+
dependencies = [
|
98
|
+
"proc-macro2",
|
99
|
+
]
|
100
|
+
|
101
|
+
[[package]]
|
102
|
+
name = "regex"
|
103
|
+
version = "1.11.1"
|
104
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
105
|
+
checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
|
106
|
+
dependencies = [
|
107
|
+
"aho-corasick",
|
108
|
+
"memchr",
|
109
|
+
"regex-automata 0.4.9",
|
110
|
+
"regex-syntax 0.8.5",
|
111
|
+
]
|
112
|
+
|
113
|
+
[[package]]
|
114
|
+
name = "regex-automata"
|
115
|
+
version = "0.1.10"
|
116
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
117
|
+
checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"
|
118
|
+
dependencies = [
|
119
|
+
"regex-syntax 0.6.29",
|
120
|
+
]
|
121
|
+
|
122
|
+
[[package]]
|
123
|
+
name = "regex-automata"
|
124
|
+
version = "0.4.9"
|
125
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
126
|
+
checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
|
127
|
+
dependencies = [
|
128
|
+
"aho-corasick",
|
129
|
+
"memchr",
|
130
|
+
"regex-syntax 0.8.5",
|
131
|
+
]
|
132
|
+
|
133
|
+
[[package]]
|
134
|
+
name = "regex-syntax"
|
135
|
+
version = "0.6.29"
|
136
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
137
|
+
checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
|
138
|
+
|
139
|
+
[[package]]
|
140
|
+
name = "regex-syntax"
|
141
|
+
version = "0.8.5"
|
142
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
143
|
+
checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
|
144
|
+
|
145
|
+
[[package]]
|
146
|
+
name = "sharded-slab"
|
147
|
+
version = "0.1.7"
|
148
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
149
|
+
checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
|
150
|
+
dependencies = [
|
151
|
+
"lazy_static",
|
152
|
+
]
|
153
|
+
|
154
|
+
[[package]]
|
155
|
+
name = "smallvec"
|
156
|
+
version = "1.14.0"
|
157
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
158
|
+
checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd"
|
159
|
+
|
160
|
+
[[package]]
|
161
|
+
name = "syn"
|
162
|
+
version = "2.0.98"
|
163
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
164
|
+
checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1"
|
165
|
+
dependencies = [
|
166
|
+
"proc-macro2",
|
167
|
+
"quote",
|
168
|
+
"unicode-ident",
|
169
|
+
]
|
170
|
+
|
171
|
+
[[package]]
|
172
|
+
name = "thread_local"
|
173
|
+
version = "1.1.8"
|
174
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
175
|
+
checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c"
|
176
|
+
dependencies = [
|
177
|
+
"cfg-if",
|
178
|
+
"once_cell",
|
179
|
+
]
|
180
|
+
|
181
|
+
[[package]]
|
182
|
+
name = "tracing"
|
183
|
+
version = "0.1.41"
|
184
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
185
|
+
checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0"
|
186
|
+
dependencies = [
|
187
|
+
"pin-project-lite",
|
188
|
+
"tracing-attributes",
|
189
|
+
"tracing-core",
|
190
|
+
]
|
191
|
+
|
192
|
+
[[package]]
|
193
|
+
name = "tracing-attributes"
|
194
|
+
version = "0.1.28"
|
195
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
196
|
+
checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d"
|
197
|
+
dependencies = [
|
198
|
+
"proc-macro2",
|
199
|
+
"quote",
|
200
|
+
"syn",
|
201
|
+
]
|
202
|
+
|
203
|
+
[[package]]
|
204
|
+
name = "tracing-core"
|
205
|
+
version = "0.1.33"
|
206
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
207
|
+
checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c"
|
208
|
+
dependencies = [
|
209
|
+
"once_cell",
|
210
|
+
"valuable",
|
211
|
+
]
|
212
|
+
|
213
|
+
[[package]]
|
214
|
+
name = "tracing-log"
|
215
|
+
version = "0.2.0"
|
216
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
217
|
+
checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
|
218
|
+
dependencies = [
|
219
|
+
"log",
|
220
|
+
"once_cell",
|
221
|
+
"tracing-core",
|
222
|
+
]
|
223
|
+
|
224
|
+
[[package]]
|
225
|
+
name = "tracing-subscriber"
|
226
|
+
version = "0.3.19"
|
227
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
228
|
+
checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008"
|
229
|
+
dependencies = [
|
230
|
+
"matchers",
|
231
|
+
"nu-ansi-term",
|
232
|
+
"once_cell",
|
233
|
+
"regex",
|
234
|
+
"sharded-slab",
|
235
|
+
"smallvec",
|
236
|
+
"thread_local",
|
237
|
+
"tracing",
|
238
|
+
"tracing-core",
|
239
|
+
"tracing-log",
|
240
|
+
]
|
241
|
+
|
242
|
+
[[package]]
|
243
|
+
name = "unicode-ident"
|
244
|
+
version = "1.0.17"
|
245
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
246
|
+
checksum = "00e2473a93778eb0bad35909dff6a10d28e63f792f16ed15e404fca9d5eeedbe"
|
247
|
+
|
248
|
+
[[package]]
|
249
|
+
name = "valuable"
|
250
|
+
version = "0.1.1"
|
251
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
252
|
+
checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
|
253
|
+
|
254
|
+
[[package]]
|
255
|
+
name = "winapi"
|
256
|
+
version = "0.3.9"
|
257
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
258
|
+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
259
|
+
dependencies = [
|
260
|
+
"winapi-i686-pc-windows-gnu",
|
261
|
+
"winapi-x86_64-pc-windows-gnu",
|
262
|
+
]
|
263
|
+
|
264
|
+
[[package]]
|
265
|
+
name = "winapi-i686-pc-windows-gnu"
|
266
|
+
version = "0.4.0"
|
267
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
268
|
+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
269
|
+
|
270
|
+
[[package]]
|
271
|
+
name = "winapi-x86_64-pc-windows-gnu"
|
272
|
+
version = "0.4.0"
|
273
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
274
|
+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
@@ -0,0 +1,11 @@
|
|
1
|
+
pub use tracing::{debug, error, info, trace, warn};
|
2
|
+
use tracing_subscriber::{EnvFilter, fmt};
|
3
|
+
|
4
|
+
pub fn init() {
|
5
|
+
let env_filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info"));
|
6
|
+
let format = fmt::format().with_level(true).with_target(false).compact();
|
7
|
+
tracing_subscriber::fmt()
|
8
|
+
.with_env_filter(env_filter)
|
9
|
+
.event_format(format)
|
10
|
+
.init();
|
11
|
+
}
|
metadata
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: itsi-scheduler
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Wouter Coppieters
|
8
|
+
bindir: exe
|
9
|
+
cert_chain: []
|
10
|
+
date: 2025-03-01 00:00:00.000000000 Z
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: libclang
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - "~>"
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '14.0'
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - "~>"
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '14.0'
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rb_sys
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.9.91
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 0.9.91
|
40
|
+
description: Itsi Scheduler - A light-weight Fiber Scheduler implementation for Ruby
|
41
|
+
email:
|
42
|
+
- wc@pico.net.nz
|
43
|
+
executables: []
|
44
|
+
extensions:
|
45
|
+
- "./ext/itsi_scheduler/extconf.rb"
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- "./ext/itsi_scheduler/extconf.rb"
|
49
|
+
- ".rubocop.yml"
|
50
|
+
- CHANGELOG.md
|
51
|
+
- CODE_OF_CONDUCT.md
|
52
|
+
- Cargo.lock
|
53
|
+
- Cargo.toml
|
54
|
+
- LICENSE.txt
|
55
|
+
- README.md
|
56
|
+
- Rakefile
|
57
|
+
- ext/itsi_error/Cargo.lock
|
58
|
+
- ext/itsi_error/Cargo.toml
|
59
|
+
- ext/itsi_error/src/lib.rs
|
60
|
+
- ext/itsi_rb_helpers/Cargo.lock
|
61
|
+
- ext/itsi_rb_helpers/Cargo.toml
|
62
|
+
- ext/itsi_rb_helpers/src/lib.rs
|
63
|
+
- ext/itsi_scheduler/Cargo.toml
|
64
|
+
- ext/itsi_scheduler/extconf.rb
|
65
|
+
- ext/itsi_scheduler/src/lib.rs
|
66
|
+
- ext/itsi_tracing/Cargo.lock
|
67
|
+
- ext/itsi_tracing/Cargo.toml
|
68
|
+
- ext/itsi_tracing/src/lib.rs
|
69
|
+
- lib/itsi/scheduler.rb
|
70
|
+
- lib/itsi/scheduler/version.rb
|
71
|
+
- sig/itsi_scheduler.rbs
|
72
|
+
homepage: https://itsi.fyi
|
73
|
+
licenses:
|
74
|
+
- MIT
|
75
|
+
metadata:
|
76
|
+
homepage_uri: https://itsi.fyi
|
77
|
+
source_code_uri: https://github.com/wouterken/itsi/scheduler
|
78
|
+
changelog_uri: https://github.com/wouterken/itsi/scheduler/blob/main/CHANGELOG.md
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 3.1.0
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 3.3.11
|
92
|
+
requirements: []
|
93
|
+
rubygems_version: 3.6.2
|
94
|
+
specification_version: 4
|
95
|
+
summary: Itsi Scheduler - A light-weight Fiber Scheduler implementation for Ruby.
|
96
|
+
test_files: []
|