45 Commits

Author SHA1 Message Date
openharmony_ci fc1630b517 !2 README.OpenSource 中License信息整改
Merge pull request !2 from peizhe/master
OpenHarmony-v4.0-Beta1 OpenHarmony-v4.0-Beta2
2023-05-05 02:26:24 +00:00
peizhe dfc4dd482d README.OpenSource 中License信息整改
Signed-off-by: peizhe <zhaipeizhe@huawei.com>
2023-05-04 09:26:42 +08:00
openharmony_ci e3f6d36048 !1 [httpdate]Add GN Build Files and Custom Modifications to Rust Third-party Libraries
Merge pull request !1 from peizhe/master
2023-04-19 01:28:36 +00:00
peizhe ce4ebe23c9 Add GN Build Files and Custom Modifications
Signed-off-by: peizhe <472708703@qq.com>
2023-04-18 18:14:02 +08:00
Pyfisch d61774cad5 Release version 1.0.2 github.com/pyfisch/httpdate/refs/tags/v1.0.2 2021-11-17 12:29:48 +01:00
5225225 dd14068ae6 Rustfmt/clippy ignore, add benchmarks to clippy/check CI runs 2021-11-17 12:10:38 +01:00
5225225 c6c0e5dd67 Remove allocation in encode_date benchmark 2021-11-17 12:10:38 +01:00
5225225 3c907d596d Add all date formats to the benchmark 2021-11-17 12:10:38 +01:00
5225225 6e375783d1 Move toint_1 to around the other toints 2021-11-17 12:10:38 +01:00
5225225 58617ec1a6 Add formatting benchmark, forbid unsafe code 2021-11-17 12:10:38 +01:00
5225225 527d389d64 Remove unsafe in parser, also make it faster! 2021-11-17 12:10:38 +01:00
Pyfisch 1a10f1b36b Reject inconsistent date strings
Check if the parsed date is bad by roundtripping to SystemTime.

Release v1.0.1
2021-05-24 18:39:36 +02:00
David Kellum 7880c1147b Add test for HttpDate parsed vs from SystemTime equality (failing) 2021-05-24 18:39:36 +02:00
Pyfisch db4cd6ced3 Release v1.0.0 2021-03-31 12:29:24 +02:00
Pyfisch 07c48b0803 Remove old docs links Cargo.toml 2021-03-29 21:35:46 +02:00
Pyfisch 1d6a2e6189 Remove Travis CI 2021-03-29 21:28:51 +02:00
Pyfisch 644f5621e3 Rustfmt files and fix lints
Ensure that PartialOrd and Ord agree on an ordering.
2021-03-29 21:23:54 +02:00
Pyfisch 70b12bc967 Add GitHub Actions CI and update README 2021-03-29 21:03:42 +02:00
Pyfisch 2916e56d76 Update code to 2018 edition 2021-03-29 20:49:33 +02:00
Brandon W Maister 3e53ffaf24 Derive Hash for HttpDate
The headers crate has expressed interest in using httpdate[1], but it needs
`Hash` to be implemented on its `HttpDate` facade.

[1]: https://github.com/hyperium/headers/pull/74
2021-03-29 19:55:52 +02:00
Pyfisch 9edc18537e Release 0.3.2 2018-05-02 18:10:16 +02:00
Pyfisch 9f941a5fc5 Merge pull request #3 from tailhook/fixes_may
Fixes typo "Mai" -> "May"
2018-05-02 18:08:02 +02:00
Paul Colomiets 5deecd8b29 Fixes typo "Mai" -> "May" 2018-05-02 18:36:01 +03:00
Pyfisch edb34d01ed Increment version to 0.3.1
Now with faster formatting & updated fuzzer.
2018-03-04 19:54:42 +01:00
Pyfisch 0a5621940e Merge pull request #2 from tailhook/faster_formatting
Faster formatting
2018-03-04 19:37:57 +01:00
Paul Colomiets 7284850c7f Hardcode datetime formatting for performance
Benchmark before the change:
```
test format ... bench:         232 ns/iter (+/- 9)
```

Benchmark after the change:
```
test format ... bench:          74 ns/iter (+/- 1)
```
2018-02-22 00:46:07 +02:00
Paul Colomiets dc21314c08 Faster calculations for formatting 2018-02-22 00:32:03 +02:00
Pyfisch ad4ffc324a Publish v0.3.0 2017-09-06 15:42:30 +02:00
Pyfisch 60b551bd97 Expose HttpDate type
Closes #1
2017-09-06 12:49:28 +02:00
Pyfisch 41b691378e Add crates.io badge. Add note about fuzzing. Format files. 2017-03-04 21:39:32 +01:00
Pyfisch 9c8ae80ea9 Increase minimum rust version to 1.13 2017-03-04 21:26:23 +01:00
Pyfisch 0ecaefb836 Add simple fuzzer. Fix bugs found with fuzzing.
Use bytestrings internally.
Now check all bytes in date string (do not ignore delimiters).
2017-03-04 21:21:40 +01:00
Pyfisch fa85d8af55 Bump version to 0.2.0 2016-12-24 15:42:29 +01:00
Pyfisch 08dc1722cc Remove coveralls. 2016-12-24 12:17:55 +01:00
Pyfisch d018dae98e Add .coveralls.yml 2016-12-24 12:12:02 +01:00
Pyfisch 3ef1443a6e Link docs and build status. Minor doc improvements. 2016-12-24 12:04:49 +01:00
Pyfisch a33b0bbf45 Add secret token for travis. 2016-12-24 11:39:44 +01:00
Pyfisch 1a552b2b06 Update Cargo.toml 2016-12-24 11:15:20 +01:00
Pyfisch 77c28fc29e Add opaque error type.
Contains important impls.
2016-12-24 11:05:50 +01:00
Pyfisch a3a659d332 Update minimum supported version of Rust to 1.10 2016-10-15 12:34:35 +02:00
Pyfisch 6c097508b8 Add dummy feature unstable. 2016-10-15 12:23:13 +02:00
Pyfisch 677ef4e6fd Fix .travis.yml 2016-10-15 12:19:45 +02:00
Pyfisch ceac8dbfa1 Add README.md 2016-10-15 12:15:23 +02:00
Pyfisch a88f1070fa add .travis.yml 2016-10-02 22:31:14 +02:00
Pyfisch 1937cf6a95 initial commit 2016-10-02 22:29:41 +02:00