prosody 0.6.0 → 0.6.1
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/.config/rail.toml +5 -1
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +7 -0
- data/CONFIGURATION.md +1 -1
- data/Cargo.lock +120 -113
- data/README.md +4 -2
- data/ext/prosody/Cargo.toml +1 -0
- data/ext/prosody/src/tracing_util.rs +0 -8
- data/ext/prosody/src/util.rs +0 -14
- data/lib/prosody/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: c0b45cfdf5e41001c6b51e0de14eaaf8acf8dce65663c367007c03715264177d
|
|
4
|
+
data.tar.gz: '069638592ae7b673b31eade1675db4b45837d4434c9649a2b0514e2ef9dd5380'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f5e39f47c3f9fa877229414e2b62a5dc4c7ce7a68b4aa1c69a92bf672403cd14b808a7657a59bb4d392b395613ca4c751bd6dba63146ca7ee353c2a283f8101
|
|
7
|
+
data.tar.gz: b392f20e68b21970b0236d4ee00c8e030ea664cfcb7bafcdb4b696dec6ac53e09ea191e36d27bcfb8adfc7d789f7139e9c63174021ea24d7150d86c3be017393
|
data/.config/rail.toml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[plan.work.ci]
|
|
2
|
-
paths = [".config/rail.toml", ".github/**"
|
|
2
|
+
paths = [".config/rail.toml", ".github/**"]
|
|
3
3
|
scope = "repository"
|
|
4
4
|
|
|
5
5
|
[plan.work.ruby]
|
|
@@ -24,3 +24,7 @@ paths = [
|
|
|
24
24
|
"typecheck_negative/**",
|
|
25
25
|
]
|
|
26
26
|
scope = "repository"
|
|
27
|
+
|
|
28
|
+
[plan.work.taplo]
|
|
29
|
+
paths = [".taplo.toml"]
|
|
30
|
+
scope = "repository"
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.1](https://github.com/prosody-events/prosody-rb/compare/prosody/v0.6.0...prosody/v0.6.1) (2026-10-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **deps:** upgrade prosody to 0.7.1 ([#58](https://github.com/prosody-events/prosody-rb/issues/58)) ([54e0556](https://github.com/prosody-events/prosody-rb/commit/54e0556190290985f5dae16bddb09a0dbf8afdd6))
|
|
9
|
+
|
|
3
10
|
## [0.6.0](https://github.com/prosody-events/prosody-rb/compare/prosody/v0.5.1...prosody/v0.6.0) (2026-10-02)
|
|
4
11
|
|
|
5
12
|
|
data/CONFIGURATION.md
CHANGED
|
@@ -40,7 +40,7 @@ Set `subsystem` to make this client answer requests. Without it, the client cons
|
|
|
40
40
|
| Option / Environment Variable | Description | Default |
|
|
41
41
|
|-----------------------------------------|------------------------------------------------------|------------------------|
|
|
42
42
|
| `max_concurrency` / `PROSODY_MAX_CONCURRENCY` | Max messages being processed simultaneously | 32 |
|
|
43
|
-
| `max_uncommitted` / `PROSODY_MAX_UNCOMMITTED` | Max
|
|
43
|
+
| `max_uncommitted` / `PROSODY_MAX_UNCOMMITTED` | Max in-flight messages; at the limit, only a partition with a waiting message pauses | 64 |
|
|
44
44
|
| `timeout` / `PROSODY_TIMEOUT` | Cancel handler if it runs longer than this | 80% of stall threshold |
|
|
45
45
|
| `commit_interval` / `PROSODY_COMMIT_INTERVAL` | How often to save progress to Kafka | 1s |
|
|
46
46
|
| `poll_interval` / `PROSODY_POLL_INTERVAL` | How often to fetch new messages from Kafka | 100ms |
|
data/Cargo.lock
CHANGED
|
@@ -84,7 +84,7 @@ checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667"
|
|
|
84
84
|
dependencies = [
|
|
85
85
|
"proc-macro2",
|
|
86
86
|
"quote",
|
|
87
|
-
"syn 3.0.
|
|
87
|
+
"syn 3.0.9",
|
|
88
88
|
]
|
|
89
89
|
|
|
90
90
|
[[package]]
|
|
@@ -314,9 +314,9 @@ checksum = "0d74937895e761d5984206f82ca8ff7725d0fd8021921011921894b41ab1b9f7"
|
|
|
314
314
|
|
|
315
315
|
[[package]]
|
|
316
316
|
name = "cc"
|
|
317
|
-
version = "1.
|
|
317
|
+
version = "1.8.0"
|
|
318
318
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
319
|
-
checksum = "
|
|
319
|
+
checksum = "6651c9ed80effdc7db0ff72512157f901af5e3549e341e24b1dd4887d836d838"
|
|
320
320
|
dependencies = [
|
|
321
321
|
"find-msvc-tools",
|
|
322
322
|
"jobserver",
|
|
@@ -413,6 +413,12 @@ version = "0.8.7"
|
|
|
413
413
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
414
414
|
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
|
|
415
415
|
|
|
416
|
+
[[package]]
|
|
417
|
+
name = "core_detect"
|
|
418
|
+
version = "1.0.0"
|
|
419
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
420
|
+
checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48"
|
|
421
|
+
|
|
416
422
|
[[package]]
|
|
417
423
|
name = "cpufeatures"
|
|
418
424
|
version = "0.2.17"
|
|
@@ -550,7 +556,7 @@ dependencies = [
|
|
|
550
556
|
"proc-macro2",
|
|
551
557
|
"quote",
|
|
552
558
|
"strsim",
|
|
553
|
-
"syn 3.0.
|
|
559
|
+
"syn 3.0.9",
|
|
554
560
|
]
|
|
555
561
|
|
|
556
562
|
[[package]]
|
|
@@ -583,7 +589,7 @@ checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785"
|
|
|
583
589
|
dependencies = [
|
|
584
590
|
"darling_core 0.24.1",
|
|
585
591
|
"quote",
|
|
586
|
-
"syn 3.0.
|
|
592
|
+
"syn 3.0.9",
|
|
587
593
|
]
|
|
588
594
|
|
|
589
595
|
[[package]]
|
|
@@ -668,7 +674,7 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
|
|
|
668
674
|
dependencies = [
|
|
669
675
|
"proc-macro2",
|
|
670
676
|
"quote",
|
|
671
|
-
"syn 3.0.
|
|
677
|
+
"syn 3.0.9",
|
|
672
678
|
]
|
|
673
679
|
|
|
674
680
|
[[package]]
|
|
@@ -697,14 +703,14 @@ dependencies = [
|
|
|
697
703
|
"enum-ordinalize",
|
|
698
704
|
"proc-macro2",
|
|
699
705
|
"quote",
|
|
700
|
-
"syn 3.0.
|
|
706
|
+
"syn 3.0.9",
|
|
701
707
|
]
|
|
702
708
|
|
|
703
709
|
[[package]]
|
|
704
710
|
name = "either"
|
|
705
|
-
version = "1.
|
|
711
|
+
version = "1.19.0"
|
|
706
712
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
707
|
-
checksum = "
|
|
713
|
+
checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
|
|
708
714
|
|
|
709
715
|
[[package]]
|
|
710
716
|
name = "enum-ordinalize"
|
|
@@ -723,7 +729,7 @@ checksum = "a65863d15a4ce2888bd2f0f543cc963d3879c3a022c8ee43f6141d479a3ac815"
|
|
|
723
729
|
dependencies = [
|
|
724
730
|
"proc-macro2",
|
|
725
731
|
"quote",
|
|
726
|
-
"syn 3.0.
|
|
732
|
+
"syn 3.0.9",
|
|
727
733
|
]
|
|
728
734
|
|
|
729
735
|
[[package]]
|
|
@@ -791,9 +797,9 @@ checksum = "651755bc34f44f4fef9edc525a2a88d913303b83a75de6de855cce6ef9180188"
|
|
|
791
797
|
|
|
792
798
|
[[package]]
|
|
793
799
|
name = "fjall"
|
|
794
|
-
version = "3.1.
|
|
800
|
+
version = "3.1.12"
|
|
795
801
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
796
|
-
checksum = "
|
|
802
|
+
checksum = "8efbd0317c570d3bc4f498f44644d908e7dbac8138f4e083cc853baea25c8c65"
|
|
797
803
|
dependencies = [
|
|
798
804
|
"byteorder-lite",
|
|
799
805
|
"byteview",
|
|
@@ -907,7 +913,7 @@ checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
|
|
|
907
913
|
dependencies = [
|
|
908
914
|
"proc-macro2",
|
|
909
915
|
"quote",
|
|
910
|
-
"syn 3.0.
|
|
916
|
+
"syn 3.0.9",
|
|
911
917
|
]
|
|
912
918
|
|
|
913
919
|
[[package]]
|
|
@@ -996,9 +1002,9 @@ dependencies = [
|
|
|
996
1002
|
|
|
997
1003
|
[[package]]
|
|
998
1004
|
name = "h2"
|
|
999
|
-
version = "0.4.
|
|
1005
|
+
version = "0.4.20"
|
|
1000
1006
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1001
|
-
checksum = "
|
|
1007
|
+
checksum = "7d29020232d6aa3fb1daca64c1127cf662cf97f254ae16c18c05b8ab635fc118"
|
|
1002
1008
|
dependencies = [
|
|
1003
1009
|
"atomic-waker",
|
|
1004
1010
|
"bytes",
|
|
@@ -1130,9 +1136,9 @@ dependencies = [
|
|
|
1130
1136
|
|
|
1131
1137
|
[[package]]
|
|
1132
1138
|
name = "hyper"
|
|
1133
|
-
version = "1.
|
|
1139
|
+
version = "1.12.0"
|
|
1134
1140
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1135
|
-
checksum = "
|
|
1141
|
+
checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c"
|
|
1136
1142
|
dependencies = [
|
|
1137
1143
|
"atomic-waker",
|
|
1138
1144
|
"bytes",
|
|
@@ -1425,15 +1431,15 @@ dependencies = [
|
|
|
1425
1431
|
|
|
1426
1432
|
[[package]]
|
|
1427
1433
|
name = "lazy_static"
|
|
1428
|
-
version = "1.5.
|
|
1434
|
+
version = "1.5.1"
|
|
1429
1435
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1430
|
-
checksum = "
|
|
1436
|
+
checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
|
|
1431
1437
|
|
|
1432
1438
|
[[package]]
|
|
1433
1439
|
name = "libc"
|
|
1434
|
-
version = "0.2.
|
|
1440
|
+
version = "0.2.190"
|
|
1435
1441
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1436
|
-
checksum = "
|
|
1442
|
+
checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
|
|
1437
1443
|
|
|
1438
1444
|
[[package]]
|
|
1439
1445
|
name = "libloading"
|
|
@@ -1456,9 +1462,9 @@ dependencies = [
|
|
|
1456
1462
|
|
|
1457
1463
|
[[package]]
|
|
1458
1464
|
name = "libz-sys"
|
|
1459
|
-
version = "1.1.
|
|
1465
|
+
version = "1.1.30"
|
|
1460
1466
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1461
|
-
checksum = "
|
|
1467
|
+
checksum = "f710a23e6dbf193214fd46ca56a9d6864e550abe86202184532ae7275e46de19"
|
|
1462
1468
|
dependencies = [
|
|
1463
1469
|
"cc",
|
|
1464
1470
|
"libc",
|
|
@@ -1541,9 +1547,9 @@ checksum = "d3d25b0e0b648a86960ac23b7ad4abb9717601dec6f66c165f5b037f3f03065f"
|
|
|
1541
1547
|
|
|
1542
1548
|
[[package]]
|
|
1543
1549
|
name = "magnus"
|
|
1544
|
-
version = "0.9.
|
|
1550
|
+
version = "0.9.2"
|
|
1545
1551
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1546
|
-
checksum = "
|
|
1552
|
+
checksum = "b9068710e00d21be762edca59b9c4c8946dbdb29820d4f76ad559afea07982c9"
|
|
1547
1553
|
dependencies = [
|
|
1548
1554
|
"magnus-macros",
|
|
1549
1555
|
"rb-sys",
|
|
@@ -1607,9 +1613,9 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
|
|
1607
1613
|
|
|
1608
1614
|
[[package]]
|
|
1609
1615
|
name = "mio"
|
|
1610
|
-
version = "1.2.
|
|
1616
|
+
version = "1.2.4"
|
|
1611
1617
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1612
|
-
checksum = "
|
|
1618
|
+
checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee"
|
|
1613
1619
|
dependencies = [
|
|
1614
1620
|
"libc",
|
|
1615
1621
|
"wasi 0.11.1+wasi-snapshot-preview1",
|
|
@@ -1747,9 +1753,9 @@ dependencies = [
|
|
|
1747
1753
|
|
|
1748
1754
|
[[package]]
|
|
1749
1755
|
name = "objc2"
|
|
1750
|
-
version = "0.6.
|
|
1756
|
+
version = "0.6.5"
|
|
1751
1757
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1752
|
-
checksum = "
|
|
1758
|
+
checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8"
|
|
1753
1759
|
dependencies = [
|
|
1754
1760
|
"objc2-encode",
|
|
1755
1761
|
]
|
|
@@ -1790,9 +1796,9 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
|
1790
1796
|
|
|
1791
1797
|
[[package]]
|
|
1792
1798
|
name = "opentelemetry"
|
|
1793
|
-
version = "0.33.
|
|
1799
|
+
version = "0.33.1"
|
|
1794
1800
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1795
|
-
checksum = "
|
|
1801
|
+
checksum = "8c1f1a6ac9c875a4941e4c7c085b61e8f4daa326de03b4701768c3491a6ad9ee"
|
|
1796
1802
|
dependencies = [
|
|
1797
1803
|
"futures-core",
|
|
1798
1804
|
"futures-sink",
|
|
@@ -1804,9 +1810,9 @@ dependencies = [
|
|
|
1804
1810
|
|
|
1805
1811
|
[[package]]
|
|
1806
1812
|
name = "opentelemetry-http"
|
|
1807
|
-
version = "0.33.
|
|
1813
|
+
version = "0.33.1"
|
|
1808
1814
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1809
|
-
checksum = "
|
|
1815
|
+
checksum = "302249bd8ee804789faaa7b5b2cbf79bc61cb864714079c644e3828af5b7e811"
|
|
1810
1816
|
dependencies = [
|
|
1811
1817
|
"async-trait",
|
|
1812
1818
|
"bytes",
|
|
@@ -1817,9 +1823,9 @@ dependencies = [
|
|
|
1817
1823
|
|
|
1818
1824
|
[[package]]
|
|
1819
1825
|
name = "opentelemetry-otlp"
|
|
1820
|
-
version = "0.33.
|
|
1826
|
+
version = "0.33.1"
|
|
1821
1827
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1822
|
-
checksum = "
|
|
1828
|
+
checksum = "0756af24841e367128ef31c831999937b8b5c5197d47914590d8f4e2e88c2e1a"
|
|
1823
1829
|
dependencies = [
|
|
1824
1830
|
"http",
|
|
1825
1831
|
"httpdate",
|
|
@@ -1838,9 +1844,9 @@ dependencies = [
|
|
|
1838
1844
|
|
|
1839
1845
|
[[package]]
|
|
1840
1846
|
name = "opentelemetry-proto"
|
|
1841
|
-
version = "0.33.
|
|
1847
|
+
version = "0.33.1"
|
|
1842
1848
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1843
|
-
checksum = "
|
|
1849
|
+
checksum = "d576f5dddc3299341bcd85a04be17b2564844c0c9563214f02d85f2524d1afae"
|
|
1844
1850
|
dependencies = [
|
|
1845
1851
|
"base64 0.22.1",
|
|
1846
1852
|
"const-hex",
|
|
@@ -1854,15 +1860,15 @@ dependencies = [
|
|
|
1854
1860
|
|
|
1855
1861
|
[[package]]
|
|
1856
1862
|
name = "opentelemetry-semantic-conventions"
|
|
1857
|
-
version = "0.33.
|
|
1863
|
+
version = "0.33.1"
|
|
1858
1864
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1859
|
-
checksum = "
|
|
1865
|
+
checksum = "7a3cf639fefd3e852869114f9925b578da6dd8e99281a2089bb0e773ead46962"
|
|
1860
1866
|
|
|
1861
1867
|
[[package]]
|
|
1862
1868
|
name = "opentelemetry_sdk"
|
|
1863
|
-
version = "0.33.
|
|
1869
|
+
version = "0.33.1"
|
|
1864
1870
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1865
|
-
checksum = "
|
|
1871
|
+
checksum = "372a912db2974d1990207006fd0e3aa0ef3fd4ad3be43c65cfaadf2206866061"
|
|
1866
1872
|
dependencies = [
|
|
1867
1873
|
"futures-channel",
|
|
1868
1874
|
"futures-executor",
|
|
@@ -1990,9 +1996,9 @@ dependencies = [
|
|
|
1990
1996
|
|
|
1991
1997
|
[[package]]
|
|
1992
1998
|
name = "powerfmt"
|
|
1993
|
-
version = "0.2.
|
|
1999
|
+
version = "0.2.1"
|
|
1994
2000
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1995
|
-
checksum = "
|
|
2001
|
+
checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958"
|
|
1996
2002
|
|
|
1997
2003
|
[[package]]
|
|
1998
2004
|
name = "ppv-lite86"
|
|
@@ -2041,7 +2047,7 @@ dependencies = [
|
|
|
2041
2047
|
"proc-macro-error-attr3",
|
|
2042
2048
|
"proc-macro2",
|
|
2043
2049
|
"quote",
|
|
2044
|
-
"syn 3.0.
|
|
2050
|
+
"syn 3.0.9",
|
|
2045
2051
|
]
|
|
2046
2052
|
|
|
2047
2053
|
[[package]]
|
|
@@ -2055,14 +2061,15 @@ dependencies = [
|
|
|
2055
2061
|
|
|
2056
2062
|
[[package]]
|
|
2057
2063
|
name = "proptest"
|
|
2058
|
-
version = "1.
|
|
2064
|
+
version = "1.12.0"
|
|
2059
2065
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2060
|
-
checksum = "
|
|
2066
|
+
checksum = "b8530004ccb15eae51c7e40009fbe317f341f804db54dc033eec1c50be28cfa0"
|
|
2061
2067
|
dependencies = [
|
|
2062
2068
|
"bitflags",
|
|
2069
|
+
"chacha20",
|
|
2070
|
+
"core_detect",
|
|
2063
2071
|
"num-traits",
|
|
2064
|
-
"rand 0.
|
|
2065
|
-
"rand_chacha",
|
|
2072
|
+
"rand 0.10.3",
|
|
2066
2073
|
"rand_xorshift",
|
|
2067
2074
|
"regex-syntax",
|
|
2068
2075
|
"unarray",
|
|
@@ -2079,7 +2086,7 @@ dependencies = [
|
|
|
2079
2086
|
"futures",
|
|
2080
2087
|
"magnus",
|
|
2081
2088
|
"opentelemetry",
|
|
2082
|
-
"prosody 0.7.
|
|
2089
|
+
"prosody 0.7.1",
|
|
2083
2090
|
"rb-sys",
|
|
2084
2091
|
"rustfs-mimalloc",
|
|
2085
2092
|
"serde",
|
|
@@ -2096,9 +2103,9 @@ dependencies = [
|
|
|
2096
2103
|
|
|
2097
2104
|
[[package]]
|
|
2098
2105
|
name = "prosody"
|
|
2099
|
-
version = "0.7.
|
|
2106
|
+
version = "0.7.1"
|
|
2100
2107
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2101
|
-
checksum = "
|
|
2108
|
+
checksum = "1268fe484c726e7a9e94d15611c5a42023ac792b9e5770e3054cc4074e859bb9"
|
|
2102
2109
|
dependencies = [
|
|
2103
2110
|
"ahash",
|
|
2104
2111
|
"aho-corasick",
|
|
@@ -2169,13 +2176,13 @@ dependencies = [
|
|
|
2169
2176
|
|
|
2170
2177
|
[[package]]
|
|
2171
2178
|
name = "prosody-macros"
|
|
2172
|
-
version = "0.7.
|
|
2179
|
+
version = "0.7.1"
|
|
2173
2180
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2174
|
-
checksum = "
|
|
2181
|
+
checksum = "ca458caf9d1d933fccadab0975bf12ee0f5ec52010e1e60f52a0ba1be8af6af4"
|
|
2175
2182
|
dependencies = [
|
|
2176
2183
|
"proc-macro2",
|
|
2177
2184
|
"quote",
|
|
2178
|
-
"syn 3.0.
|
|
2185
|
+
"syn 3.0.9",
|
|
2179
2186
|
]
|
|
2180
2187
|
|
|
2181
2188
|
[[package]]
|
|
@@ -2375,11 +2382,11 @@ dependencies = [
|
|
|
2375
2382
|
|
|
2376
2383
|
[[package]]
|
|
2377
2384
|
name = "rand_xorshift"
|
|
2378
|
-
version = "0.
|
|
2385
|
+
version = "0.5.0"
|
|
2379
2386
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2380
|
-
checksum = "
|
|
2387
|
+
checksum = "60aa6af80be32871323012e02e6e65f8a7cc7890931ae421d217ad8fe0df2ccf"
|
|
2381
2388
|
dependencies = [
|
|
2382
|
-
"rand_core 0.
|
|
2389
|
+
"rand_core 0.10.1",
|
|
2383
2390
|
]
|
|
2384
2391
|
|
|
2385
2392
|
[[package]]
|
|
@@ -2479,7 +2486,7 @@ checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a"
|
|
|
2479
2486
|
dependencies = [
|
|
2480
2487
|
"proc-macro2",
|
|
2481
2488
|
"quote",
|
|
2482
|
-
"syn 3.0.
|
|
2489
|
+
"syn 3.0.9",
|
|
2483
2490
|
]
|
|
2484
2491
|
|
|
2485
2492
|
[[package]]
|
|
@@ -2563,9 +2570,9 @@ dependencies = [
|
|
|
2563
2570
|
|
|
2564
2571
|
[[package]]
|
|
2565
2572
|
name = "rust-embed"
|
|
2566
|
-
version = "8.
|
|
2573
|
+
version = "8.13.0"
|
|
2567
2574
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2568
|
-
checksum = "
|
|
2575
|
+
checksum = "19afa5b4b6a611de00bd1bdae6ae6f39084c9399f0679c3f52d8469cf335cc23"
|
|
2569
2576
|
dependencies = [
|
|
2570
2577
|
"rust-embed-impl",
|
|
2571
2578
|
"rust-embed-utils",
|
|
@@ -2574,9 +2581,9 @@ dependencies = [
|
|
|
2574
2581
|
|
|
2575
2582
|
[[package]]
|
|
2576
2583
|
name = "rust-embed-impl"
|
|
2577
|
-
version = "8.
|
|
2584
|
+
version = "8.13.0"
|
|
2578
2585
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2579
|
-
checksum = "
|
|
2586
|
+
checksum = "e0d8afda6374eac59e066abee06d265247ebbaf3006cf878e2879e8356e34053"
|
|
2580
2587
|
dependencies = [
|
|
2581
2588
|
"mime_guess",
|
|
2582
2589
|
"proc-macro2",
|
|
@@ -2588,9 +2595,9 @@ dependencies = [
|
|
|
2588
2595
|
|
|
2589
2596
|
[[package]]
|
|
2590
2597
|
name = "rust-embed-utils"
|
|
2591
|
-
version = "8.
|
|
2598
|
+
version = "8.13.0"
|
|
2592
2599
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2593
|
-
checksum = "
|
|
2600
|
+
checksum = "0d84e8ba78bd384263e5922f084cbe1b081c3b7e69add59c8fb097b879ba968a"
|
|
2594
2601
|
dependencies = [
|
|
2595
2602
|
"globset",
|
|
2596
2603
|
"sha2",
|
|
@@ -2749,7 +2756,7 @@ dependencies = [
|
|
|
2749
2756
|
"darling 0.24.1",
|
|
2750
2757
|
"proc-macro2",
|
|
2751
2758
|
"quote",
|
|
2752
|
-
"syn 3.0.
|
|
2759
|
+
"syn 3.0.9",
|
|
2753
2760
|
]
|
|
2754
2761
|
|
|
2755
2762
|
[[package]]
|
|
@@ -2812,14 +2819,14 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
|
2812
2819
|
dependencies = [
|
|
2813
2820
|
"proc-macro2",
|
|
2814
2821
|
"quote",
|
|
2815
|
-
"syn 3.0.
|
|
2822
|
+
"syn 3.0.9",
|
|
2816
2823
|
]
|
|
2817
2824
|
|
|
2818
2825
|
[[package]]
|
|
2819
2826
|
name = "serde_json"
|
|
2820
|
-
version = "1.0.
|
|
2827
|
+
version = "1.0.154"
|
|
2821
2828
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2822
|
-
checksum = "
|
|
2829
|
+
checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
|
|
2823
2830
|
dependencies = [
|
|
2824
2831
|
"itoa",
|
|
2825
2832
|
"memchr",
|
|
@@ -2880,9 +2887,9 @@ checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d"
|
|
|
2880
2887
|
|
|
2881
2888
|
[[package]]
|
|
2882
2889
|
name = "sha2"
|
|
2883
|
-
version = "0.11.
|
|
2890
|
+
version = "0.11.1"
|
|
2884
2891
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2885
|
-
checksum = "
|
|
2892
|
+
checksum = "47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19"
|
|
2886
2893
|
dependencies = [
|
|
2887
2894
|
"cfg-if",
|
|
2888
2895
|
"cpufeatures 0.3.1",
|
|
@@ -2944,9 +2951,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|
|
2944
2951
|
|
|
2945
2952
|
[[package]]
|
|
2946
2953
|
name = "smallvec"
|
|
2947
|
-
version = "1.16.
|
|
2954
|
+
version = "1.16.3"
|
|
2948
2955
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2949
|
-
checksum = "
|
|
2956
|
+
checksum = "5b3dc8af474f516a851ff4bd12db780f948b9250ad37211e4eec0bccea54e01b"
|
|
2950
2957
|
|
|
2951
2958
|
[[package]]
|
|
2952
2959
|
name = "snap"
|
|
@@ -3019,9 +3026,9 @@ dependencies = [
|
|
|
3019
3026
|
|
|
3020
3027
|
[[package]]
|
|
3021
3028
|
name = "syn"
|
|
3022
|
-
version = "3.0.
|
|
3029
|
+
version = "3.0.9"
|
|
3023
3030
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3024
|
-
checksum = "
|
|
3031
|
+
checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
|
|
3025
3032
|
dependencies = [
|
|
3026
3033
|
"proc-macro2",
|
|
3027
3034
|
"quote",
|
|
@@ -3045,7 +3052,7 @@ checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
|
|
|
3045
3052
|
dependencies = [
|
|
3046
3053
|
"proc-macro2",
|
|
3047
3054
|
"quote",
|
|
3048
|
-
"syn 3.0.
|
|
3055
|
+
"syn 3.0.9",
|
|
3049
3056
|
]
|
|
3050
3057
|
|
|
3051
3058
|
[[package]]
|
|
@@ -3084,7 +3091,7 @@ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
|
|
|
3084
3091
|
dependencies = [
|
|
3085
3092
|
"proc-macro2",
|
|
3086
3093
|
"quote",
|
|
3087
|
-
"syn 3.0.
|
|
3094
|
+
"syn 3.0.9",
|
|
3088
3095
|
]
|
|
3089
3096
|
|
|
3090
3097
|
[[package]]
|
|
@@ -3138,9 +3145,9 @@ dependencies = [
|
|
|
3138
3145
|
|
|
3139
3146
|
[[package]]
|
|
3140
3147
|
name = "tokio"
|
|
3141
|
-
version = "1.53.
|
|
3148
|
+
version = "1.53.2"
|
|
3142
3149
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3143
|
-
checksum = "
|
|
3150
|
+
checksum = "e95f91fcc7a621e8b030f6aa23c71fe9838ae2fb4d8118b75602a328f5144044"
|
|
3144
3151
|
dependencies = [
|
|
3145
3152
|
"bytes",
|
|
3146
3153
|
"libc",
|
|
@@ -3160,7 +3167,7 @@ checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e"
|
|
|
3160
3167
|
dependencies = [
|
|
3161
3168
|
"proc-macro2",
|
|
3162
3169
|
"quote",
|
|
3163
|
-
"syn 3.0.
|
|
3170
|
+
"syn 3.0.9",
|
|
3164
3171
|
]
|
|
3165
3172
|
|
|
3166
3173
|
[[package]]
|
|
@@ -3177,9 +3184,9 @@ dependencies = [
|
|
|
3177
3184
|
|
|
3178
3185
|
[[package]]
|
|
3179
3186
|
name = "tokio-util"
|
|
3180
|
-
version = "0.7.
|
|
3187
|
+
version = "0.7.20"
|
|
3181
3188
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3182
|
-
checksum = "
|
|
3189
|
+
checksum = "e464cf451ba96ebfc6f9b6542f17ee8b8956e33f1e40d9690624e59d7a7f8a4b"
|
|
3183
3190
|
dependencies = [
|
|
3184
3191
|
"bytes",
|
|
3185
3192
|
"futures-core",
|
|
@@ -3192,18 +3199,18 @@ dependencies = [
|
|
|
3192
3199
|
|
|
3193
3200
|
[[package]]
|
|
3194
3201
|
name = "toml_datetime"
|
|
3195
|
-
version = "1.1.
|
|
3202
|
+
version = "1.1.2+spec-1.1.0"
|
|
3196
3203
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3197
|
-
checksum = "
|
|
3204
|
+
checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053"
|
|
3198
3205
|
dependencies = [
|
|
3199
3206
|
"serde_core",
|
|
3200
3207
|
]
|
|
3201
3208
|
|
|
3202
3209
|
[[package]]
|
|
3203
3210
|
name = "toml_edit"
|
|
3204
|
-
version = "0.25.
|
|
3211
|
+
version = "0.25.17+spec-1.1.0"
|
|
3205
3212
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3206
|
-
checksum = "
|
|
3213
|
+
checksum = "e3641d5bbb5349a79e1020a242d251efbc546ad8048d133958323ce9c40a9c9c"
|
|
3207
3214
|
dependencies = [
|
|
3208
3215
|
"indexmap",
|
|
3209
3216
|
"toml_datetime",
|
|
@@ -3213,9 +3220,9 @@ dependencies = [
|
|
|
3213
3220
|
|
|
3214
3221
|
[[package]]
|
|
3215
3222
|
name = "toml_parser"
|
|
3216
|
-
version = "1.1.
|
|
3223
|
+
version = "1.1.5+spec-1.1.0"
|
|
3217
3224
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3218
|
-
checksum = "
|
|
3225
|
+
checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c"
|
|
3219
3226
|
dependencies = [
|
|
3220
3227
|
"winnow",
|
|
3221
3228
|
]
|
|
@@ -3468,9 +3475,9 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
|
|
|
3468
3475
|
|
|
3469
3476
|
[[package]]
|
|
3470
3477
|
name = "twox-hash"
|
|
3471
|
-
version = "2.1.
|
|
3478
|
+
version = "2.1.5"
|
|
3472
3479
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3473
|
-
checksum = "
|
|
3480
|
+
checksum = "86a801b3cea342a06d468c8710662aa29e5e05e4f5c0d62f00bbb7f2ad7941c2"
|
|
3474
3481
|
|
|
3475
3482
|
[[package]]
|
|
3476
3483
|
name = "typeid"
|
|
@@ -3492,15 +3499,15 @@ checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94"
|
|
|
3492
3499
|
|
|
3493
3500
|
[[package]]
|
|
3494
3501
|
name = "unicase"
|
|
3495
|
-
version = "2.
|
|
3502
|
+
version = "2.10.0"
|
|
3496
3503
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3497
|
-
checksum = "
|
|
3504
|
+
checksum = "357cc3acc6a036009fd6c973ed009037c732d60d0b4f6c673e9041497482a28f"
|
|
3498
3505
|
|
|
3499
3506
|
[[package]]
|
|
3500
3507
|
name = "unicode-ident"
|
|
3501
|
-
version = "1.0.
|
|
3508
|
+
version = "1.0.27"
|
|
3502
3509
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3503
|
-
checksum = "
|
|
3510
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
3504
3511
|
|
|
3505
3512
|
[[package]]
|
|
3506
3513
|
name = "url"
|
|
@@ -3522,9 +3529,9 @@ checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
|
|
|
3522
3529
|
|
|
3523
3530
|
[[package]]
|
|
3524
3531
|
name = "uuid"
|
|
3525
|
-
version = "1.
|
|
3532
|
+
version = "1.28.0"
|
|
3526
3533
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3527
|
-
checksum = "
|
|
3534
|
+
checksum = "7cc1186384beb7dd8eedea376413fd654937285ea6c9cfbb928dc3043ea4b606"
|
|
3528
3535
|
dependencies = [
|
|
3529
3536
|
"getrandom 0.4.3",
|
|
3530
3537
|
"js-sys",
|
|
@@ -3608,9 +3615,9 @@ dependencies = [
|
|
|
3608
3615
|
|
|
3609
3616
|
[[package]]
|
|
3610
3617
|
name = "want"
|
|
3611
|
-
version = "0.3.
|
|
3618
|
+
version = "0.3.2"
|
|
3612
3619
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3613
|
-
checksum = "
|
|
3620
|
+
checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b"
|
|
3614
3621
|
dependencies = [
|
|
3615
3622
|
"try-lock",
|
|
3616
3623
|
]
|
|
@@ -3691,7 +3698,7 @@ dependencies = [
|
|
|
3691
3698
|
"bumpalo",
|
|
3692
3699
|
"proc-macro2",
|
|
3693
3700
|
"quote",
|
|
3694
|
-
"syn 3.0.
|
|
3701
|
+
"syn 3.0.9",
|
|
3695
3702
|
"wasm-bindgen-shared",
|
|
3696
3703
|
]
|
|
3697
3704
|
|
|
@@ -3876,30 +3883,30 @@ dependencies = [
|
|
|
3876
3883
|
|
|
3877
3884
|
[[package]]
|
|
3878
3885
|
name = "yoke-derive"
|
|
3879
|
-
version = "0.8.
|
|
3886
|
+
version = "0.8.4"
|
|
3880
3887
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3881
|
-
checksum = "
|
|
3888
|
+
checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
|
|
3882
3889
|
dependencies = [
|
|
3883
3890
|
"proc-macro2",
|
|
3884
3891
|
"quote",
|
|
3885
|
-
"syn 3.0.
|
|
3892
|
+
"syn 3.0.9",
|
|
3886
3893
|
"synstructure",
|
|
3887
3894
|
]
|
|
3888
3895
|
|
|
3889
3896
|
[[package]]
|
|
3890
3897
|
name = "zerocopy"
|
|
3891
|
-
version = "0.8.
|
|
3898
|
+
version = "0.8.62"
|
|
3892
3899
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3893
|
-
checksum = "
|
|
3900
|
+
checksum = "86502bf56ac7c77571a32e2647bb2a15894565e981fb2a48d7bde2d91c965a9d"
|
|
3894
3901
|
dependencies = [
|
|
3895
3902
|
"zerocopy-derive",
|
|
3896
3903
|
]
|
|
3897
3904
|
|
|
3898
3905
|
[[package]]
|
|
3899
3906
|
name = "zerocopy-derive"
|
|
3900
|
-
version = "0.8.
|
|
3907
|
+
version = "0.8.62"
|
|
3901
3908
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3902
|
-
checksum = "
|
|
3909
|
+
checksum = "5457206954b06561e2608c7e19cf58b1926586d999c246eebe4502f7e2039d1a"
|
|
3903
3910
|
dependencies = [
|
|
3904
3911
|
"proc-macro2",
|
|
3905
3912
|
"quote",
|
|
@@ -3923,7 +3930,7 @@ checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
|
|
|
3923
3930
|
dependencies = [
|
|
3924
3931
|
"proc-macro2",
|
|
3925
3932
|
"quote",
|
|
3926
|
-
"syn 3.0.
|
|
3933
|
+
"syn 3.0.9",
|
|
3927
3934
|
"synstructure",
|
|
3928
3935
|
]
|
|
3929
3936
|
|
|
@@ -3957,7 +3964,7 @@ checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"
|
|
|
3957
3964
|
dependencies = [
|
|
3958
3965
|
"proc-macro2",
|
|
3959
3966
|
"quote",
|
|
3960
|
-
"syn 3.0.
|
|
3967
|
+
"syn 3.0.9",
|
|
3961
3968
|
]
|
|
3962
3969
|
|
|
3963
3970
|
[[package]]
|
|
@@ -3968,27 +3975,27 @@ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
|
|
|
3968
3975
|
|
|
3969
3976
|
[[package]]
|
|
3970
3977
|
name = "zstd"
|
|
3971
|
-
version = "0.14.
|
|
3978
|
+
version = "0.14.2"
|
|
3972
3979
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3973
|
-
checksum = "
|
|
3980
|
+
checksum = "057cfd910cfac363a0ada849592624b4c9ff2e10bef504c3433810d78ed96f93"
|
|
3974
3981
|
dependencies = [
|
|
3975
3982
|
"zstd-safe",
|
|
3976
3983
|
]
|
|
3977
3984
|
|
|
3978
3985
|
[[package]]
|
|
3979
3986
|
name = "zstd-safe"
|
|
3980
|
-
version = "8.
|
|
3987
|
+
version = "8.1.0"
|
|
3981
3988
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3982
|
-
checksum = "
|
|
3989
|
+
checksum = "bdd44c6a7284e91f3717755b24315a302edd9153a01f753c3cba3d765e8eafac"
|
|
3983
3990
|
dependencies = [
|
|
3984
3991
|
"zstd-sys",
|
|
3985
3992
|
]
|
|
3986
3993
|
|
|
3987
3994
|
[[package]]
|
|
3988
3995
|
name = "zstd-sys"
|
|
3989
|
-
version = "2.1.
|
|
3996
|
+
version = "2.1.1+zstd.1.5.7"
|
|
3990
3997
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3991
|
-
checksum = "
|
|
3998
|
+
checksum = "aeec9eaf2dffbbd09201e23bd0ffcbaa33bb8e9266a10734fd7ed90a85eca078"
|
|
3992
3999
|
dependencies = [
|
|
3993
4000
|
"cc",
|
|
3994
4001
|
"pkg-config",
|
data/README.md
CHANGED
|
@@ -457,8 +457,10 @@ This prevents endless loops where a service consumes its own produced messages.
|
|
|
457
457
|
|
|
458
458
|
## Message Deduplication
|
|
459
459
|
|
|
460
|
-
Prosody
|
|
461
|
-
same ID and
|
|
460
|
+
Prosody uses the JSON payload's `id` field to detect duplicate messages. For a consumer group and idempotence version,
|
|
461
|
+
messages with the same ID, key, topic, and partition share a deduplication record. Other messages can arrive between duplicates.
|
|
462
|
+
Prosody skips a duplicate while its record remains in the cache or persistent store. Deduplication is best-effort;
|
|
463
|
+
handlers must remain idempotent.
|
|
462
464
|
|
|
463
465
|
The deduplication system uses:
|
|
464
466
|
- A **global in-memory cache** shared across all partitions, surviving partition reassignments within a process
|
data/ext/prosody/Cargo.toml
CHANGED
|
@@ -32,14 +32,6 @@ use std::collections::HashMap;
|
|
|
32
32
|
/// - OpenTelemetry module is not available in Ruby
|
|
33
33
|
/// - Context extraction or propagation fails
|
|
34
34
|
/// - Ruby-to-Rust type conversion fails
|
|
35
|
-
///
|
|
36
|
-
/// # Example
|
|
37
|
-
///
|
|
38
|
-
/// ```rust
|
|
39
|
-
/// let context = extract_opentelemetry_context(ruby, &propagator)?;
|
|
40
|
-
/// let span = info_span!("operation");
|
|
41
|
-
/// span.set_parent(context);
|
|
42
|
-
/// ```
|
|
43
35
|
pub fn extract_opentelemetry_context(
|
|
44
36
|
ruby: &Ruby,
|
|
45
37
|
propagator: &TextMapCompositePropagator,
|
data/ext/prosody/src/util.rs
CHANGED
|
@@ -29,13 +29,6 @@ use tracing::{error, warn};
|
|
|
29
29
|
///
|
|
30
30
|
/// This macro requires a `ruby: &Ruby` parameter to enforce that it can only
|
|
31
31
|
/// be used within a Ruby thread context, ensuring thread safety.
|
|
32
|
-
///
|
|
33
|
-
/// # Examples
|
|
34
|
-
///
|
|
35
|
-
/// ```
|
|
36
|
-
/// let method_name = id!(ruby, "to_s");
|
|
37
|
-
/// // Use method_name with Ruby function calls
|
|
38
|
-
/// ```
|
|
39
32
|
#[macro_export]
|
|
40
33
|
macro_rules! id {
|
|
41
34
|
($ruby:expr, $str:expr) => {{
|
|
@@ -256,13 +249,6 @@ impl ForkGuard {
|
|
|
256
249
|
///
|
|
257
250
|
/// `Some(EnterGuard)` if we entered a new runtime (hold the guard), or `None`
|
|
258
251
|
/// if already in a runtime context.
|
|
259
|
-
///
|
|
260
|
-
/// # Examples
|
|
261
|
-
///
|
|
262
|
-
/// ```rust
|
|
263
|
-
/// let _guard = ensure_runtime_context(ruby);
|
|
264
|
-
/// // Safe to perform async operations
|
|
265
|
-
/// ```
|
|
266
252
|
pub fn ensure_runtime_context(ruby: &Ruby) -> Option<EnterGuard<'static>> {
|
|
267
253
|
let guard = Handle::try_current().is_err().then(|| RUNTIME.enter());
|
|
268
254
|
|
data/lib/prosody/version.rb
CHANGED