mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +08:00
doc: update versions in docs
This commit is contained in:
@@ -6,6 +6,25 @@ weight = 4
|
||||
|
||||
# Change Log
|
||||
|
||||
# v4.4.0
|
||||
|
||||
## Added
|
||||
|
||||
- `toml::find_or_default()` を追加 (by Ken Matsui @ken-matsui)
|
||||
- `ordered_map`から値を削除できるよう変更 (by Sunlight @SunPodder)
|
||||
- 値がアクセス済みかを調べる`bool basic_value::accessed() const`を追加
|
||||
- `TOML11_ENABLE_ACCESS_CHECK`が定義されているときのみ有効
|
||||
- `toml::spec`に比較演算子を追加
|
||||
|
||||
## Fixed
|
||||
|
||||
- `is_same<T, void>`ではなく`is_void`を使用するように修正 (by Ken Matsui @ken-matsui)
|
||||
|
||||
## Changed
|
||||
|
||||
- `toml::parse`のパフォーマンスを約2倍向上
|
||||
- GitHub ActionsでUbuntu 20のイメージの使用を終了
|
||||
|
||||
# v4.3.0
|
||||
|
||||
## Added
|
||||
|
@@ -42,7 +42,7 @@ int main()
|
||||
|
||||
デフォルトの値はtoml11のバージョンによって変わりますが、その時点でリリースされているTOML言語の最新バージョンに追従します。
|
||||
|
||||
v4.0.0現在、TOML v1.1.0はまだリリースされていないため、デフォルトのTOMLバージョンはv1.0.0です。
|
||||
v4.4.0現在、TOML v1.1.0はまだリリースされていないため、デフォルトのTOMLバージョンはv1.0.0です。
|
||||
|
||||
{{<hint warning>}}
|
||||
|
||||
|
@@ -27,6 +27,47 @@ target_link_libraries(main PUBLIC toml11::toml11)
|
||||
|
||||
`toml11`は自身がルートプロジェクトのときのみ、テストとインストールを行います。
|
||||
|
||||
### CMake `FetchContent`
|
||||
|
||||
CMakeの `FetchContent`を使用することで、`build`ディレクトリに自動でダウンロードすることができます。
|
||||
|
||||
```cmake
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
toml11
|
||||
GIT_REPOSITORY https://github.com/ToruNiina/toml11.git
|
||||
GIT_TAG v4.4.0
|
||||
)
|
||||
FetchContent_MakeAvailable(toml11)
|
||||
|
||||
add_executable(main main.cpp)
|
||||
target_link_libraries(main PRIVATE toml11::toml11)
|
||||
```
|
||||
|
||||
### CMake Package Manager (CPM)
|
||||
|
||||
[CMake package manager](https://github.com/cpm-cmake/CPM.cmake)を導入すると、以下のようにして使用することができます。
|
||||
|
||||
```cmake
|
||||
include(cmake/CPM.cmake)
|
||||
|
||||
CPMAddPackage("gh:ToruNiina/toml11@4.4.0")
|
||||
|
||||
# OR
|
||||
|
||||
CPMAddPackage(
|
||||
NAME toml11
|
||||
GITHUB_REPOSITORY "ToruNiina/toml11"
|
||||
VERSION 4.4.0
|
||||
OPTIONS
|
||||
"TOML11_PRECOMPILE ON" # to pre-compile
|
||||
"TOML11_ENABLE_ACCESS_CHECK ON" # to use value.accessed()
|
||||
)
|
||||
|
||||
add_executable(main main.cpp)
|
||||
target_link_libraries(main PUBLIC toml11::toml11)
|
||||
```
|
||||
|
||||
## `cmake`を使用してインストールする
|
||||
|
||||
`toml11`をクローンしたのち、`cmake`を使ってインストールすることができます。
|
||||
|
@@ -131,7 +131,7 @@ constexpr static spec default_version() noexcept;
|
||||
|
||||
`toml::parse`、`toml::format`でのデフォルト値として使われます。
|
||||
|
||||
toml11 v4.0.0での値は、v1.0.0です。
|
||||
toml11 v4.4.0での値は、v1.0.0です。
|
||||
|
||||
### `v(major, minor, patch)`
|
||||
|
||||
|
Reference in New Issue
Block a user