Skip to content

Commit

Permalink
doc: optimization suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
kingwingfly committed Jun 27, 2024
1 parent cbb4fd3 commit 92e900b
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish_by_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish by Tag

permissions:
contents: write

on:
push:
tags:
- v[0-9]+.*

env:
CARGO_TERM_COLOR: always

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install cargo components
run: rustup component add clippy
- name: test
run: .github/scripts/test.sh
- name: login to crates.io
run: cargo login ${{ secrets.CRATESIO }}
- name: publish encrypt_config_derive
run: .github/scripts/publish_test.sh encrypt_config_derive && .github/scripts/publish.sh encrypt_config_derive
- name: publish encrypt_config
run: .github/scripts/publish_test.sh encrypt_config && .github/scripts/publish.sh encrypt_config
- uses: taiki-e/create-gh-release-action@v1
with:
# (optional) Path to changelog.
changelog: CHANGELOG.md
# (required) GitHub token for creating GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com

## [Unreleased]

## [0.3.5] - 2024-06-27

- doc: optimization suggestion

## [0.3.4] - 2024-06-26

- fix a bug when `default_config_dir` feature is enabled when macro expanded
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["encrypt-config", "encrypt-config-derive", "tests", "examples"]
resolver = "2"

[workspace.package]
version = "0.3.4"
version = "0.3.5"
authors = ["Louis <[email protected]>"]
description = "A Rust crate to manage, persist and encrypt your configurations."
license = "MIT"
Expand All @@ -13,8 +13,8 @@ documentation = "https://docs.rs/encrypt-config"

[workspace.dependencies]
encrypt_config = { path = "encrypt-config", default-features = false }
encrypt_config_derive = { path = "encrypt-config-derive", default-features = false, version = "0.3.4" }
encrypt_config_derive = { path = "encrypt-config-derive", default-features = false, version = "0.3.5" }
keyring = { version = "2.3", default-features = false }

[profile.dev]
[profile.dev.package.num-bigint-dig]
opt-level = 3
3 changes: 3 additions & 0 deletions encrypt-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ encrypt_config = { version = "0.3", features = ["full", "linux-secret-service"]

[target.'cfg(not(target_os = "linux"))'.dependencies]
encrypt_config = { version = "0.3", features = ["full"] }

[profile.dev.package.num-bigint-dig]
opt-level = 3
```
### Example
```rust no_run
Expand Down

0 comments on commit 92e900b

Please sign in to comment.