itsi-server 0.2.25-aarch64-linux → 0.2.27.rc1-aarch64-linux

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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +939 -987
  3. data/Cargo.toml +0 -1
  4. data/Rakefile +18 -5
  5. data/ext/itsi_acme/Cargo.toml +2 -1
  6. data/ext/itsi_acme/src/acceptor.rs +1 -1
  7. data/ext/itsi_acme/src/acme.rs +31 -3
  8. data/ext/itsi_acme/src/http_challenge.rs +81 -0
  9. data/ext/itsi_acme/src/https_helper.rs +3 -1
  10. data/ext/itsi_acme/src/jose.rs +6 -2
  11. data/ext/itsi_acme/src/lib.rs +2 -0
  12. data/ext/itsi_acme/src/resolver.rs +27 -4
  13. data/ext/itsi_acme/src/state.rs +183 -22
  14. data/ext/itsi_scheduler/Cargo.toml +1 -1
  15. data/ext/itsi_scheduler/src/itsi_scheduler.rs +115 -64
  16. data/ext/itsi_scheduler/src/lib.rs +2 -1
  17. data/ext/itsi_server/Cargo.lock +2 -2
  18. data/ext/itsi_server/Cargo.toml +2 -1
  19. data/ext/itsi_server/src/lib.rs +15 -0
  20. data/ext/itsi_server/src/ruby_types/itsi_http_request.rs +9 -0
  21. data/ext/itsi_server/src/ruby_types/itsi_http_response.rs +95 -0
  22. data/ext/itsi_server/src/ruby_types/itsi_server/itsi_server_config.rs +22 -1
  23. data/ext/itsi_server/src/ruby_types/itsi_server.rs +100 -0
  24. data/ext/itsi_server/src/server/binds/listener.rs +9 -24
  25. data/ext/itsi_server/src/server/binds/tls.rs +372 -67
  26. data/ext/itsi_server/src/services/itsi_http_service.rs +46 -2
  27. data/lib/itsi/http_request.rb +10 -0
  28. data/lib/itsi/server/3.1/itsi_server.so +0 -0
  29. data/lib/itsi/server/3.2/itsi_server.so +0 -0
  30. data/lib/itsi/server/3.3/itsi_server.so +0 -0
  31. data/lib/itsi/server/3.4/itsi_server.so +0 -0
  32. data/lib/itsi/server/{itsi_server.so → 4.0/itsi_server.so} +0 -0
  33. data/lib/itsi/server/rack_interface.rb +45 -2
  34. data/lib/itsi/server/version.rb +1 -1
  35. data/lib/itsi/server.rb +24 -0
  36. metadata +9 -22
  37. data/vendor/rb-sys-build/.cargo-ok +0 -1
  38. data/vendor/rb-sys-build/.cargo_vcs_info.json +0 -6
  39. data/vendor/rb-sys-build/Cargo.lock +0 -294
  40. data/vendor/rb-sys-build/Cargo.toml +0 -71
  41. data/vendor/rb-sys-build/Cargo.toml.orig +0 -32
  42. data/vendor/rb-sys-build/LICENSE-APACHE +0 -190
  43. data/vendor/rb-sys-build/LICENSE-MIT +0 -21
  44. data/vendor/rb-sys-build/src/bindings/sanitizer.rs +0 -185
  45. data/vendor/rb-sys-build/src/bindings/stable_api.rs +0 -247
  46. data/vendor/rb-sys-build/src/bindings/wrapper.h +0 -71
  47. data/vendor/rb-sys-build/src/bindings.rs +0 -280
  48. data/vendor/rb-sys-build/src/cc.rs +0 -421
  49. data/vendor/rb-sys-build/src/lib.rs +0 -12
  50. data/vendor/rb-sys-build/src/rb_config/flags.rs +0 -101
  51. data/vendor/rb-sys-build/src/rb_config/library.rs +0 -132
  52. data/vendor/rb-sys-build/src/rb_config/search_path.rs +0 -57
  53. data/vendor/rb-sys-build/src/rb_config.rs +0 -906
  54. data/vendor/rb-sys-build/src/utils.rs +0 -53
@@ -1,57 +0,0 @@
1
- /// Represents the kind of search path.
2
- #[derive(Debug, PartialEq, Eq)]
3
- pub enum SearchPathKind {
4
- Native,
5
- Framework,
6
- }
7
-
8
- /// Represents a library taht can be linked with Cargo.
9
- #[derive(Debug, PartialEq, Eq)]
10
- pub struct SearchPath {
11
- pub kind: SearchPathKind,
12
- pub name: String,
13
- }
14
-
15
- impl From<&str> for SearchPathKind {
16
- fn from(s: &str) -> Self {
17
- match s {
18
- "framework" => SearchPathKind::Framework,
19
- "native" => SearchPathKind::Native,
20
- _ => panic!("Unknown lib kind: {}", s),
21
- }
22
- }
23
- }
24
-
25
- impl From<&str> for SearchPath {
26
- fn from(s: &str) -> Self {
27
- let parts: Vec<_> = s.split('=').collect();
28
-
29
- match parts.len() {
30
- 1 => (SearchPathKind::Native, parts[0]).into(),
31
- 2 => (parts[0], parts[1]).into(),
32
- _ => panic!("Invalid library specification: {}", s),
33
- }
34
- }
35
- }
36
-
37
- impl<K, T> From<(K, T)> for SearchPath
38
- where
39
- K: Into<SearchPathKind>,
40
- T: Into<String>,
41
- {
42
- fn from((kind, name): (K, T)) -> Self {
43
- Self {
44
- kind: kind.into(),
45
- name: name.into(),
46
- }
47
- }
48
- }
49
-
50
- impl std::fmt::Display for SearchPath {
51
- fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
52
- match self.kind {
53
- SearchPathKind::Framework => write!(f, "framework={}", self.name),
54
- SearchPathKind::Native => write!(f, "native={}", self.name),
55
- }
56
- }
57
- }