Update README.md

This commit is contained in:
Daniel Lemire 2024-08-27 08:25:45 -04:00 committed by GitHub
parent 6385dca660
commit f03b76f0e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -415,6 +415,16 @@ target_link_libraries(myprogram PUBLIC fast_float)
You should change the `GIT_TAG` line so that you recover the version you wish to use. You should change the `GIT_TAG` line so that you recover the version you wish to use.
You may also use [CPM](https://github.com/cpm-cmake/CPM.cmake), like so:
```
CPMAddPackage(
NAME fast_float
GITHUB_REPOSITORY "fastfloat/fast_float"
GIT_TAG v6.1.4)
```
## Using as single header ## Using as single header
The script `script/amalgamate.py` may be used to generate a single header The script `script/amalgamate.py` may be used to generate a single header
@ -427,6 +437,12 @@ You may directly download automatically generated single-header files:
https://github.com/fastfloat/fast_float/releases/download/v6.1.4/fast_float.h https://github.com/fastfloat/fast_float/releases/download/v6.1.4/fast_float.h
## Packages
- The fast_float library is part of the [Conan package manager](https://conan.io/center/recipes/fast_float).
- It is part of the [brew package manager](https://formulae.brew.sh/formula/fast_float).
- Some Linux distribution like Fedora include fast_float (e.g., as `fast_float-devel`).
## RFC 7159 ## RFC 7159
If you need support for RFC 7159 (JSON standard), you may want to consider using the [fast_double_parser](https://github.com/lemire/fast_double_parser/) library instead. If you need support for RFC 7159 (JSON standard), you may want to consider using the [fast_double_parser](https://github.com/lemire/fast_double_parser/) library instead.