Skip to content

Releases: fossas/locator-rs

v2.3.0

30 Oct 19:37
1a05e8c
Compare
Choose a tag to compare

What's Changed

  • Add serde and schema definitions to more types by @jssblck in #10, #11

Full Changelog: v2.2.0...v2.3.0

v2.2.0

10 Oct 22:23
adb3137
Compare
Choose a tag to compare

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

v2.1.0

10 Oct 17:44
bb2bfb0
Compare
Choose a tag to compare

What's Changed

Update docs, add convenience implementations by @jssblck in #8

  • Locator, StrictLocator, and PackageLocator now implement AsRef<&T> (so you can use impl AsRef<&Locator>).
  • Locator, StrictLocator, and PackageLocator now implement FromStr (so you can use "...".parse()).
  • Compile-time checked macros for constructing locators are now available:
    • locator::strict! constructs a StrictLocator
    • locator::package! constructs a PackageLocator
    • locator::locator! constructs a Locator
  • Docs for the org_id field in Locator, StrictLocator, and PackageLocator explain the intention and suggested use for the field more clearly.

Full Changelog: v2.0.2...v2.1.0

v2.0.2

25 Jun 21:59
0eadd4a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.1...v2.0.2

v2.0.1

19 Jun 19:06
51d106b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.0...v2.0.1

v2.0.0

05 Jun 22:29
f0d2a57
Compare
Choose a tag to compare

What's Changed

  • Add StrictLocator type, along with a lot of compatibility work by @jssblck in #5

Full Changelog: v1.0.0...v2.0.0