Skip to content

Commit

Permalink
chore: Release 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andoriyu committed Jan 16, 2023
1 parent d1e0b0c commit 48ecbb8
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 12 deletions.
45 changes: 35 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,53 @@
## [0.2.3](https://github.com/Inner-Heaven/libnv-rs/compare/v0.2.2...v0.2.3) (2021-10-20)
# Changelog

### Changes
All notable changes to this project will be documented in this file.

* chore(deps): Update nvpair-sys requirement from 0.1.0 to 0.4.0 (#9)
* fix(nvpair): s/sys::boolean/sys::boolean_t/g
## [0.4.0] - 2023-01-16

## [0.2.2](https://github.com/Inner-Heaven/libnv-rs/compare/v0.2.1...v0.2.2) (2019-09-22)
### Features

- Run bindgen at build time (#17)
- Add NvList::add_binary (#22)
- Add NvList::from_ptr (#19)
- [**breaking**] Introduce IntoCStr trait (#25)

## [0.3.0] - 2022-04-17

### Features

* **nvpair:** Add iterator for NvPair ([9f08a4a](https://github.com/Inner-Heaven/libnv-rs/commit/9f08a4a))
- **nvpair:** Separate boolean and boolean_value

## [0.2.2] - 2019-09-22

### Features

- **nvpair:** Add iterator for NvPair
- **nvpair:** Add iterator for NvPair

### Fmt

## [0.2.1](https://github.com/Inner-Heaven/libnv-rs/compare/v0.2.0...v0.2.1) (2019-09-01)
- Reformat

## [0.2.1] - 2019-09-01

### Bug Fixes

* **nvpair:** Dedup code and remove MaybeUninit where not needed ([90eabb9](https://github.com/Inner-Heaven/libnv-rs/commit/90eabb9))
- Remove dbg!()
- Dedup code and remove MaybeUninit where not needed

### Features

- Add cirrus and get_str method

## [0.1.3] - 2019-08-27

### Bug Fixes

- **doc-test:** Fix broken tests
- Expose NvList::as_ptr()

### Documentation

## [0.2.0](https://github.com/Inner-Heaven/libnv-rs/compare/v0.1.3...v0.2.0) (2019-08-29)
- **libnv:** Formating

* **nvpair:**: Basic nvpair functionality
<!-- generated by git-cliff -->
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "libnv"
version = "0.3.0"
authors = ["Andrey Cherkashin <with.out@me.com>"]
version = "0.4.0"
authors = ["Andrey Snow <andoriyu@gmail.com>"]
categories = ["api-bindings", "data-structures", "os"]
license = "BSD-2-Clause"
description = "Safe and rustic wrapper around libnv-sys."
Expand All @@ -12,6 +12,7 @@ members = [ ".", "libnv-sys" ]

[package.metadata.release]
dev-version-ext = "pre"
pre-release-hook = ["git-cliff", "-o", "CHANGELOG.md", "--tag", "{{version}}"]

[features]
default = ["libnv", "nvpair"]
Expand All @@ -23,3 +24,4 @@ libc = "0.2"
nvpair-sys = { version = "0.4.0", optional = true }
quick-error = "2.0"
libnv-sys = { path = "libnv-sys", version = "0.1", optional = true }

66 changes: 66 additions & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# configuration file for git-cliff (0.1.0)

[changelog]
# changelog header
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
# template for the changelog body
# https://tera.netlify.app/docs/#introduction
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}**{{commit.scope}}:** {% endif %}{% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
<!-- generated by git-cliff -->
"""

[git]
# parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
# filter out the commits that are not conventional
filter_unconventional = true
# process each line of a commit as an individual commit
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/ZeroAssumptions/aide-de-camp/issues/${2}))"},
]
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"},
{ message = "^doc", group = "Documentation"},
{ message = "^perf", group = "Performance"},
{ message = "^refactor", group = "Refactor"},
{ message = "^style", group = "Styling"},
{ message = "^test", group = "Testing"},
{ message = "^chore\\(release\\): prepare for", skip = true},
{ message = "^chore", group = "Miscellaneous Tasks", skip = true},
{ body = ".*security", group = "Security"},
]
# filter out the commits that are not matched by commit parsers
filter_commits = false
# glob pattern for matching git tags
tag_pattern = "v[0-9]*"
# regex for skipping tags
skip_tags = "v0.1.0-beta.1"
# regex for ignoring tags
ignore_tags = ""
# sort the tags chronologically
date_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
cargo-sort
cargo-sweep
cargo-wipe
cargo-release
cmake
git-cliff
gnumake
Expand Down

0 comments on commit 48ecbb8

Please sign in to comment.