From 67ec4d200d8675e8ba878380e3e15a1a4b079ae3 Mon Sep 17 00:00:00 2001 From: Denis Varlakov Date: Fri, 24 Nov 2023 14:48:37 +0000 Subject: [PATCH 1/3] Update manifest --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 41cbd85..5022331 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,11 @@ name = "stark-curve" version = "0.1.0" edition = "2021" +license = "MIT OR Apache-2.0" +description = "Stark curve implementation" +repository = "https://github.com/dfns/stark-curve" +categories = ["cryptography", "no-std", "no-std::no-alloc"] +keywords = ["elliptic-curves", "stark-curve"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -21,3 +26,5 @@ starknet-ff = "0.2" hex = "0.4" +[package.metadata.docs.rs] +rustdoc-args = ["--html-in-header", "katex-header.html"] From 7a9ccce538a1263a45c53f832108d6abb6a0e262 Mon Sep 17 00:00:00 2001 From: Denis Varlakov Date: Fri, 24 Nov 2023 14:50:01 +0000 Subject: [PATCH 2/3] Add publish workflow --- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..1ebab04 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +on: + push: + tags: + - 'v*' + workflow_dispatch: + +name: Publish + +env: + CARGO_TERM_COLOR: always + CARGO_NET_GIT_FETCH_WITH_CLI: true + +jobs: + publish-round-based: + name: Publish crate + environment: crates.io + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: cargo publish --token ${CRATES_TOKEN} + env: + CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} From 5995bb6a7c30542984407580b850afedf6cfe3ee Mon Sep 17 00:00:00 2001 From: Denis Varlakov Date: Fri, 24 Nov 2023 14:56:46 +0000 Subject: [PATCH 3/3] Add badges --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index fc4658d..d9313f1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +![License](https://img.shields.io/crates/l/stark-curve.svg) +[![Docs](https://docs.rs/stark-curve/badge.svg)](https://docs.rs/stark-curve) +[![Crates io](https://img.shields.io/crates/v/stark-curve.svg)](https://crates.io/crates/stark-curve) + # Stark Curve Pure Rust implementation of [Stark Curve][stark-specs]. Provides basic elliptic curve arithmetic backed by