artichoke / strftime-ruby

⏳ Ruby `Time#strftime` parser and formatter
https://crates.io/crates/strftime-ruby
MIT License
12 stars 0 forks source link

Prepare for v1.0.0 release #58

Closed lopopolo closed 2 years ago

lopopolo commented 2 years ago

Release Notes

Release 1.0.0 of strftime-ruby.

strftime-ruby is available on crates.io.

strftime-ruby is a Ruby 3.1.2 compatible implementation of the Time#strftime method. The strftime routines provided by this crate are POSIX-compatible, except for intentionally ignoring the E and O modified conversion specifiers.

API

There are 5 strftime functions in this crate which vary in the type of format specifier they take and how they write the formatted output:

Allocations

The only routines that allocate in this crate are strftime::bytes::strftime and strftime::string::strftime. These routines use fallible allocation APIs from alloc and return errors to callers.

strftime::fmt::strftime and strftime::io::strftime perform no allocations on their own, but the provided writers may allocate.

Cargo Features

strftime-ruby has alloc and std features. All features are enabled by default.

strftime::buffered::strftime and strftime::fmt::strftime are available when this crate is compiled without any features and are usable in a no_std context.

The alloc feature enables strftime::bytes::strftime and strftime::string::strftime.

The std feature enables strftime::io::strftime.

Test Coverage

strftime-ruby has 100% line coverage, which is enforced by CI, and is fuzzed regularly.

lopopolo commented 2 years ago

Will wait for https://github.com/artichoke/strftime-ruby/pull/55 to be merged and will rebase.

lopopolo commented 2 years ago

READMEs looks good. Only broken link is the docs.rs link, which will be fixed when we release: https://github.com/artichoke/strftime-ruby/pull/59.

lopopolo commented 2 years ago

@x-hgg-x what do you think of these release notes? Do you think they could double as the announcement text?

lopopolo commented 2 years ago

blocked on resolving all outstanding PRs.

x-hgg-x commented 2 years ago

@x-hgg-x what do you think of these release notes? Do you think they could double as the announcement text?

Yes it is a good summary of the crate capabilities.