From 64afc7484c6ad910722f4d06ee5f7deafaf44bf8 Mon Sep 17 00:00:00 2001 From: randymcmillan Date: Wed, 29 May 2024 09:12:56 -0400 Subject: [PATCH 1/2] Cargo.toml: add package attribution and apply cargo sort --- Cargo.toml | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c86f894..2e5db8b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,16 @@ name = "bbqr" version = "0.3.1" edition = "2021" +license = "MIT" +rust-version = "1.68" +readme = "README.md" +homepage = "https://github.com/SatoshiPortal/bbqr-rust" +repository = "https://github.com/SatoshiPortal/bbqr-rust" +documentation = "https://github.com/SatoshiPortal/bbqr-rust" +categories = ["QR"] +keywords = ["BBQr", "coinkite", "QR"] +description = "Implementaion of the bbqr spec in rust" +authors = ["Satoshi Portal Developers ", "Praveen Perera ", "ishi "] [lib] crate_type = ["cdylib", "rlib", "staticlib"] @@ -9,31 +19,34 @@ crate_type = ["cdylib", "rlib", "staticlib"] [features] default = ["qr-codes"] qr-codes = ["fast_qr"] - # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -# error handling -thiserror = "1.0.59" # hex/base32 encoding data-encoding = "2.6.0" -# base36 encoding -radix_fmt = "1.0.0" +# generate qr code +fast_qr = { version = "0.12.5", features = ["svg"], optional = true } # zlib compression flate2 = { version = "1.0", features = ["any_zlib", "zlib"], default-features = false } -# generate qr code -fast_qr = { version = "0.12.5", features = ["svg"], optional = true } - # logging log = "0.4.21" +# base36 encoding +radix_fmt = "1.0.0" +# error handling +thiserror = "1.0.59" + [dev-dependencies] -# for testing -rand = "0.8.5" pretty_assertions = "1.4.0" +# for testing +rand = "0.8.5" +# The profile that 'cargo dist' will build with +[profile.dist] +inherits = "release" +lto = "thin" From 5dd0dbdf090393accf950ec5671c5487c60e4d36 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Wed, 29 May 2024 09:38:12 -0400 Subject: [PATCH 2/2] .github/workflows/rust.yml:build and test --- .github/workflows/rust.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..76bde8b --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,22 @@ +name: Rust + +on: + push: + branches: [ "trunk" ] + pull_request: + branches: [ "trunk" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose