firemq 0.1.0-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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bba6c623dbbe6acc8c194502b61b477396e03c6dcd51d13a9ee77c91e270ddac
4
+ data.tar.gz: 110378744cb121aa293371f1cd21a03e5472941407577a9b4fbe0ccf2decfc59
5
+ SHA512:
6
+ metadata.gz: 29f04a87fd3732730b8e6e60afd78da7576d202c51f85df7738ecda938cb6daab131f067e7e9f1e2517a00384a7b24b5337c20b174aa7dd4049c913afb013270
7
+ data.tar.gz: 5aa173b98c4cd6b5acfe82a0c7b378fdf1b171e10f9463821ac8793da0ca7f584cb45787fb692ccc07f324e411d78b0736fa6f74c23e1e177f10db9c790a1007
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`.