Getting started
This page gets you from a clean checkout to a simulator print in the fewest steps.
1. Build
Section titled “1. Build”cargo build --release -p reyin-clicargo build --release -p reyindThe CLI binary is target/release/reyin. The daemon is target/release/reyind.
2. Verify the CLI
Section titled “2. Verify the CLI”./target/release/reyin --helpExpected output lists discover, status, print, jobs, job, settings, calibrate, identify and serve.
3. Print on the simulator
Section titled “3. Print on the simulator”The simulator ships a virtual ZPL printer and needs no hardware. The —sim flag uses the built-in simulator provider.
./target/release/reyin --sim discover
./target/release/reyin --sim status
./target/release/reyin --sim print --wait --media 4x6 label.pnglabel.png can be any PNG the repo fixtures already contain, for example tests/fixtures/inputs/gradient_400x300.png. —media WIDTHxLENGTH inches is required when the document has no intrinsic media size. —wait blocks until the job reaches a terminal state.
4. Run as a foreground IPP server
Section titled “4. Run as a foreground IPP server”./target/release/reyin --sim serve --bind 127.0.0.1:8631This starts the print server with the simulator-backed manager. The IPP server exposes the simulator queue on the loopback address; it is for quick use and tests, not a public deployment.
5. Use the library instead of the CLI
Section titled “5. Use the library instead of the CLI”The Rust facade example crates/reyin/examples/sim-print.rs shows the same flow through the reyin crate: build a Manager with a SimProvider, discover, print a raw ZPL document, and assert Completed. Run it with:
cargo run -p reyin --example sim-print --features "sim blocking drivers-zpl"6. Next steps
Section titled “6. Next steps”- cli.md for every command, flag and exit code.
- rust-library.md for the library API.
- bindings.md for Node/Python/Dart.
- daemon.md for reyind and services.md for IPP/sync/connector.
Source: docs/guides/getting-started.md at fe2ada6890.