diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index c173368..9966ab1 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -18,7 +18,7 @@ jobs: - name: Hash Release id: get-hash run: | - echo "TAG_NAME=$(sha256sum ./target/release/rsa_implementation | head -c 64)" >> $GITHUB_OUTPUT + echo "TAG_NAME=$(cat VERSION.txt)" >> $GITHUB_OUTPUT - name: Publish uses: akkuman/gitea-release-action@v1 env: @@ -27,6 +27,5 @@ jobs: sha256sum: true body_path: ./CHANGES.md tag_name: '${{steps.get-hash.outputs.TAG_NAME}}' - name: '${{hashFiles(./target/release/rsa_implementation)}}' files: |- - ./target/release/rsa_implementation + ./target/release/rsa diff --git a/Cargo.lock b/Cargo.lock index d167be1..9ad35d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -711,7 +711,7 @@ dependencies = [ ] [[package]] -name = "rsa_implementation" +name = "rsa" version = "0.1.0" dependencies = [ "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 3af4168..6e4fe58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "rsa_implementation" +name = "rsa" version = "0.1.0" edition = "2021" @@ -14,4 +14,16 @@ fern = { version = "0.6.2", features = ["chrono", "colored"] } humantime = "2.1.0" log = "0.4.21" num-bigint-dig = { version = "0.8.4", features = ["rand", "prime"] } -rand = "0.8.5" \ No newline at end of file +rand = "0.8.5" + +[profile.release] +split-debuginfo = "packed" +strip = "symbols" +lto = "fat" +panic = "abort" +codegen-units = 1 +opt-level = 3 +debug = false +debug-assertions = false +overflow-checks = false +incremental = false \ No newline at end of file diff --git a/VERSION.txt b/VERSION.txt new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/VERSION.txt @@ -0,0 +1 @@ +1.0