From bab58f40b53800265084ee7c767916ad0817fe5c Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 28 May 2022 13:00:59 +0300 Subject: [PATCH] Bump version (0.3.0) [1/2] --- .github/workflows/main.yml | 10 +++++----- ChangeLog | 7 +------ NEWS.md | 32 ++++++++++++++++++++++++++++++++ README.md | 4 ++-- configure.ac | 2 +- pkgs/mruby/README.md | 3 +-- pkgs/mruby/mrbgem.rake | 2 +- pkgs/ruby/README.md | 4 ++-- pkgs/ruby/lib/kernaux/version.rb | 2 +- pkgs/rust/kernaux-sys/Cargo.toml | 2 +- pkgs/rust/kernaux/Cargo.toml | 4 ++-- 11 files changed, 49 insertions(+), 23 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d889f9..a149d83 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,17 +41,17 @@ jobs: - name: dist run: make dist - name: extract - run: tar -xzf libkernaux-0.2.0.tar.gz - - working-directory: libkernaux-0.2.0 + run: tar -xzf libkernaux-0.3.0.tar.gz + - working-directory: libkernaux-0.3.0 name: configure run: ./configure --enable-tests --enable-tests-python - - working-directory: libkernaux-0.2.0 + - working-directory: libkernaux-0.3.0 name: make run: make - - working-directory: libkernaux-0.2.0 + - working-directory: libkernaux-0.3.0 name: check run: make check || (cat test-suite.log && false) - - working-directory: libkernaux-0.2.0 + - working-directory: libkernaux-0.3.0 name: install run: sudo make install diff --git a/ChangeLog b/ChangeLog index 804a176..3ce83b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,18 +1,13 @@ 2022-05-28 Alex Kotov - * include/kernaux/printf_fmt.h: Change API + libkernaux 0.3.0 released 2022-05-24 Alex Kotov - * src/multiboot2/info_is_valid.c: Fix division by zero * configure.ac: Test options made stable * configure.ac: Feature "bloat" made stable * src/: Use assertions everywhere (closes #14) -2022-02-10 Alex Kotov - - * configure.ac: Normalize args - 2022-02-02 Alex Kotov * configure.ac: Generate position-independent code by default, disable with diff --git a/NEWS.md b/NEWS.md index c788e36..1dae624 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,6 +3,38 @@ Releases +0.3.0 (2022-05-28) +------------------ + +### Breaking changes + +* `` - a semicolon is required after macros. +* `` - the constant `KERNAUX_ITOA_BUFFER_SIZE` is renamed to + `KERNAUX_ITOA10_BUFFER_SIZE`. + +### New features + +* `./configure` - testing may be enabled with `--enable-tests`, + `--enable-tests-all`, `--enable-tests-python`. +* `./configure` - the heavy binary data may be disabled with `--disable-bloat`. +* `./configure` - position-independent code is generated by default, disable + with `--disable-pic`. +* `./configure` - compiler warnings turn into errors by default, disable with + `--disable-werror`. +* `` - added functions `atoi`, `isdigit`, `isspace`. +* `` - added functions `kernaux_[u|i]toa`, `kernaux_[u|i]toa16` + and related constants. + +### Other changes + +* Assertions are used more broadly. +* `` - the header is now generated from template depending on + configuration options, so you may safely require it when some packages are + missing, it won't cause compilation error. +* `` - a potential buffer overflow is fixed. + + + 0.2.0 (2022-01-22) ------------------ diff --git a/README.md b/README.md index 6478585..b4ee966 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ zero). Work-in-progress APIs can change at any time. * Architecture-specific code (*work in progress*) * [Declarations](/include/kernaux/arch/) * [Functions](/include/kernaux/asm/) - * [Assertions](/include/kernaux/assert.h) (*stable since* **0.1.0**, *non-breaking since* **?.?.?**) + * [Assertions](/include/kernaux/assert.h) (*stable since* **0.1.0**, *non-breaking since* **0.3.0**) * [Assert: simple](/examples/assert_simple.c) * [Assert: guards](/examples/assert_guards.c) * [Panic: simple](/examples/panic_simple.c) @@ -66,7 +66,7 @@ zero). Work-in-progress APIs can change at any time. * [To human](/examples/units_human.c) * Usual functions * [libc replacement](/include/kernaux/libc.h) (*stable since* **0.1.0**) - * [itoa/ftoa replacement](/include/kernaux/ntoa.h) (*stable since* **0.1.0**, *non-breaking since* **?.?.?**) + * [itoa/ftoa replacement](/include/kernaux/ntoa.h) (*stable since* **0.1.0**, *non-breaking since* **0.3.0**) * [printf replacement](/include/kernaux/printf.h) (*stable since* **0.1.0**) * Code from [https://github.com/mpaland/printf](https://github.com/mpaland/printf). Thank you! * [printf](/examples/printf.c) diff --git a/configure.ac b/configure.ac index 8a12690..edea1a1 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ AC_PREREQ([2.68]) AC_INIT([libkernaux], - [0.2.0], + [0.3.0], [https://github.com/tailix/libkernaux/issues], [libkernaux], [https://github.com/tailix/libkernaux]) diff --git a/pkgs/mruby/README.md b/pkgs/mruby/README.md index 5366517..271ef4c 100644 --- a/pkgs/mruby/README.md +++ b/pkgs/mruby/README.md @@ -19,8 +19,7 @@ MRuby::Build.new do |conf| # ... conf.gem github: 'tailix/libkernaux', path: 'pkgs/mruby', - branch: 'v0.2.0', - checksum_hash: '50e35b187426f8ce814b9580777b96c48767e4bc' + branch: 'v0.3.0' # ... end ``` diff --git a/pkgs/mruby/mrbgem.rake b/pkgs/mruby/mrbgem.rake index 59150f6..c030951 100644 --- a/pkgs/mruby/mrbgem.rake +++ b/pkgs/mruby/mrbgem.rake @@ -1,5 +1,5 @@ MRuby::Gem::Specification.new 'mruby-kernaux' do |spec| - spec.version = '0.0.0' + spec.version = '0.3.0' spec.license = 'MIT' spec.homepage = 'https://github.com/tailix/libkernaux/tree/master/pkgs/ruby' spec.author = 'Alex Kotov' diff --git a/pkgs/ruby/README.md b/pkgs/ruby/README.md index 15845e5..7658a91 100644 --- a/pkgs/ruby/README.md +++ b/pkgs/ruby/README.md @@ -15,7 +15,7 @@ Install Add the following to your `Gemfile`: ```ruby -gem 'kernaux', '~> 0.2.0' +gem 'kernaux', '~> 0.3.0' ``` Or add the following to your `*.gemspec`: @@ -23,7 +23,7 @@ Or add the following to your `*.gemspec`: ```ruby Gem::Specification.new do |spec| # ... - spec.add_runtime_dependency 'kernaux', '~> 0.2.0' + spec.add_runtime_dependency 'kernaux', '~> 0.3.0' # ... end ``` diff --git a/pkgs/ruby/lib/kernaux/version.rb b/pkgs/ruby/lib/kernaux/version.rb index 2e2451f..f108037 100644 --- a/pkgs/ruby/lib/kernaux/version.rb +++ b/pkgs/ruby/lib/kernaux/version.rb @@ -2,5 +2,5 @@ module KernAux # Gem version. - VERSION = '0.2.0' + VERSION = '0.3.0' end diff --git a/pkgs/rust/kernaux-sys/Cargo.toml b/pkgs/rust/kernaux-sys/Cargo.toml index ffccd7f..a79eb5f 100644 --- a/pkgs/rust/kernaux-sys/Cargo.toml +++ b/pkgs/rust/kernaux-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kernaux-sys" -version = "0.2.0" +version = "0.3.0" authors = ["Alex Kotov "] edition = "2021" description = "Unsafe no-std binding to libkernaux - auxiliary library for kernel development" diff --git a/pkgs/rust/kernaux/Cargo.toml b/pkgs/rust/kernaux/Cargo.toml index 59a20f1..13cb34c 100644 --- a/pkgs/rust/kernaux/Cargo.toml +++ b/pkgs/rust/kernaux/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kernaux" -version = "0.2.0" +version = "0.3.0" authors = ["Alex Kotov "] edition = "2021" description = "Safe binding to libkernaux - auxiliary library for kernel development" @@ -13,5 +13,5 @@ categories = ["api-bindings", "embedded", "parsing"] publish = true [dependencies.kernaux-sys] -version = "0.2.0" +version = "0.3.0" path = "../kernaux-sys"