1
0
Fork
You've already forked Rust-Printer-App
0
  • Rust 94%
  • Shell 6%
2026年02月16日 23:59:57 +02:00
.cargo init 2024年09月15日 15:06:37 +03:00
src separating http and https, adding optional hostname 2026年02月16日 23:59:57 +02:00
.env separating http and https, adding optional hostname 2026年02月16日 23:59:57 +02:00
.gitignore init 2024年09月15日 15:06:37 +03:00
Cargo.lock separating http and https, adding optional hostname 2026年02月16日 23:59:57 +02:00
Cargo.toml separating http and https, adding optional hostname 2026年02月16日 23:59:57 +02:00
Cross.toml init 2024年09月15日 15:06:37 +03:00
GenerateCerts.sh fix logs, add print history part I 2025年05月22日 23:38:57 +03:00
README.md fix logs, add print history part I 2025年05月22日 23:38:57 +03:00
rust-toolchain.toml init 2024年09月15日 15:06:37 +03:00

Web API project for rust-printers

Building the project

Generate certs

Generate local certificates by running ./GenerateCerts.sh

Import ./localhost2-RootCA/localhost2-RootCA.crt intro your browser.

.env

LOG_LEVEL - application log level
HTTP_PORT - port for http
HTTPS_PORT - port for https

Build on host

Just run cargo run

Build for other platforms (e.g RPI)

Change target CPU in .cargo/config.toml and build project with CROSS : cross build --target=aarch64-unknown-linux-gnu --bins --release

Building for RPI currently doesn't work because of the following issues:
https://github.com/rust-lang/rust/issues/125033 || fix ? https://github.com/llvm/llvm-project/pull/95694
As I know the opensource community this will be fixed between soon and 2099 !

You can by pass this by useting target cpu to generic (performance decrese)

The following pacakges are required: libssl-dev and pkg-config cups libcups2-dev

Note:
If NO printer is present the app might crash