Add a simple Bazel module and build file.

This commit is contained in:
Carbo Kuo 2024-10-31 08:44:43 -04:00
parent 252029ddac
commit 3aaddfe336
3 changed files with 20 additions and 0 deletions

12
BUILD.bazel Normal file
View file

@ -0,0 +1,12 @@
cc_library(
name = "fast_double_parser",
hdrs = ["include/fast_double_parser.h"],
strip_include_prefix = "include",
visibility = ["//visibility:public"],
)
cc_test(
name = "unit",
srcs = ["tests/unit.cpp"],
deps = [":fast_double_parser"],
)

7
MODULE.bazel Normal file
View file

@ -0,0 +1,7 @@
"""fast_double_parser: 4x faster than strtod."""
module(
name = "fast_double_parser",
version = "0.8.0",
compatibility_level = 0,
)

View file

@ -169,6 +169,7 @@ double-conv 243.90 MB/s
- [There is a Rust port](https://github.com/ezrosent/frawk/tree/master/src/runtime/float_parse).
- [There is a Java port](https://github.com/wrandelshofer/FastDoubleParser).
- [There is a C# port](https://github.com/CarlVerret/csFastFloat).
- [Bazel Central Registry](https://registry.bazel.build/modules/fast_double_parser).
## Credit