firemq 0.1.0-x64-mingw-ucrt

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 01d49eb8ef1efd4910abbddb20aa9e535babb16ba1e23230d0f72d39ffcf9eba
4
+ data.tar.gz: be61d308108fc9a533d6ab1397b9224802d7383aa79f41f05179765f8fd397b8
5
+ SHA512:
6
+ metadata.gz: 47f4f535d53e9a848f6fe0302c234fee8f55fc7c927b08169cdca2a0a937a8211aab3be3bc6652a14922923349b24e65a0076591677814cfad6aac60ba8f7027
7
+ data.tar.gz: 7ae7e432bbd9e0c4141121098a8256644b63d24404316f9c3bb5f84fe7f264fcd298a1e1d115c99103315168aff1dd4d6b75255fc6f925cf3d3e3157d159812e
data/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # firemq for Ruby
2
+
3
+ A Ruby client for [FireMQ](https://github.com/FireMQ/firemq), built on the Rust client with
4
+ [UniFFI](https://mozilla.github.io/uniffi-rs/).
5
+
6
+ ```bash
7
+ gem install firemq
8
+ ```
9
+
10
+ The gem includes the native library for Linux (x86-64 and arm64, glibc 2.17 or later), macOS
11
+ (Apple silicon and Intel, 11 or later) and Windows x64, so it needs no compiler. It needs
12
+ Ruby 3.1 or later.
13
+
14
+ ```ruby
15
+ require "firemq"
16
+
17
+ FireMQ.connect("fire://guest:guest@localhost:5673") do |client|
18
+ client.declare_queue("jobs")
19
+ client.publish("", "jobs", "hello", headers: { "attempt" => 1 }, content_type: "text/plain")
20
+
21
+ client.subscribe("jobs", prefetch: 10).each do |msg|
22
+ puts msg.text
23
+ msg.ack
24
+ break
25
+ end
26
+ end
27
+ ```
28
+
29
+ Calls block until the broker answers. Errors are subclasses of `FireMQ::Error`:
30
+ `ServerError` (with the AMQP reply `code`), `UnroutableError`, `NackedError`, `ClosedError`
31
+ and `OtherError`.
32
+
33
+ To use a library you built yourself, set `FIREMQ_LIB` to its path.
34
+
35
+ ## Develop
36
+
37
+ Build the library, start a broker, then run the tests:
38
+
39
+ ```bash
40
+ cargo build -p firemq-client-ffi
41
+ FIREMQ_LIB=../../target/debug/libfiremq_client_ffi.so \
42
+ FIREMQ_URL=fire://guest:guest@localhost:5673 \
43
+ bundle exec ruby -Ilib -Itest test/test_firemq.rb
44
+ ```
45
+
46
+ On macOS, the library is `libfiremq_client_ffi.dylib`.
Binary file