Skip to content

v2.2.0

Compare
Choose a tag to compare
@jssblck jssblck released this 10 Oct 22:23
· 2 commits to main since this release
adb3137

What's Changed

Replace typed_builder with bon by @jssblck in #9:

Instead of this:

let org_id = Some(1234);
let locator = StrictLocator::builder()
    .fetcher(Fetcher::Git)
    .package("...")
    .revision("...");
let locator = match org_id {
    None => locator.build(),
    Some(org_id) => locator.org_id(org_id).build(),
};

Users can now do this:

let org_id = Some(1234);
let locator = StrictLocator::builder()
    .fetcher(Fetcher::Git)
    .package("...")
    .revision("...")
    .maybe_org_id(org_id)
    .build();

Users can still fill the field directly when a value is known to exist:

let locator = StrictLocator::builder()
    .fetcher(Fetcher::Git)
    .package("...")
    .revision("...")
    .org_id(1234)
    .build();

Additionally, error messages for partially built structs are now improved.

Full Changelog: v2.1.0...v2.2.0