Lines Matching +full:rust +full:- +full:src
3 [<img alt="github" src="https://img.shields.io/badge/github-dtolnay/ryu-8da0cb?style=for-the-badge&…
4 [<img alt="crates.io" src="https://img.shields.io/crates/v/ryu.svg?style=for-the-badge&color=fc8d62…
5 [<img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-ryu-66c2a5?style=for-the-badge&labelC…
6 [<img alt="build status" src="https://img.shields.io/github/workflow/status/dtolnay/ryu/CI/master?s…
8 Pure Rust implementation of Ryū, an algorithm to quickly convert floating point
11 The PLDI'18 paper [*Ryū: fast float-to-string conversion*][paper] by Ulf Adams
13 under the creative commons CC-BY-SA license.
15 This Rust implementation is a line-by-line port of Ulf Adams' implementation in
19 uses nothing from the Rust standard library so is usable from no_std crates.*
31 ```rust
44 $ git clone https://github.com/ulfjack/ryu c-ryu
45 $ cd c-ryu
46 $ bazel run -c opt //ryu/benchmark
52 $ git clone https://github.com/dtolnay/ryu rust-ryu
53 $ cd rust-ryu
54 $ cargo run --example upstream_benchmark --release
57 These benchmarks measure the average time to print a 32-bit float and average
58 time to print a 64-bit float, where the inputs are distributed as uniform random
61 The upstream C code, the unsafe direct Rust port, and the safe pretty Rust API
62 all perform the same, taking around 21 nanoseconds to format a 32-bit float and
63 31 nanoseconds to format a 64-bit float.
65 There is also a Rust-specific benchmark comparing this implementation to the
72 The benchmark shows Ryū approximately 4-10x faster than the standard library
77 |:--------:|:----:|:------:|:-----------------:|:--------:|
82 |:--------:|:----:|:------:|:-----------------:|:--------:|
88 This library tends to produce more human-readable output than the standard
92 - *ryu:* 1.23e40, *std:* 12300000000000000000000000000000000000000
93 - *ryu:* 1.23e-40, *std:* 0.000000000000000000000000000000000000000123
103 Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
104 2.0</a> or <a href="LICENSE-BOOST">Boost Software License 1.0</a> at your
112 for inclusion in this crate by you, as defined in the Apache-2.0 license, shall