Skip to content

Releases: fossas/locator-rs

v4.2.0

30 Oct 14:41
6c926ef

Choose a tag to compare

What's Changed

  • Bump Swatinem/rust-cache from 2.7.8 to 2.8.0 in the rollup group by @dependabot[bot] in #31
  • Bump actions/checkout from 4 to 5 in the rollup group by @dependabot[bot] in #32
  • Bump Swatinem/rust-cache from 2.8.0 to 2.8.1 in the rollup group by @dependabot[bot] in #33
  • Add PURL support by @nficca in #36

Full Changelog: v4.1.0...v4.2.0

v4.1.0

25 Jun 17:58
894e60e

Choose a tag to compare

What's Changed

Full Changelog: v4.0.2...v4.1.0

v4.0.2

24 Jun 20:24
50f5d83

Choose a tag to compare

What's Changed

Full Changelog: v4.0.1...v4.0.2

v4.0.1

10 Jun 20:32
cf6b7c0

Choose a tag to compare

What's Changed

Full Changelog: v4.0.0...v4.0.1

v4.0.0

02 Jun 19:32
433f1a3

Choose a tag to compare

What's Changed

Full Changelog: v3.0.0...v4.0.0

v3.0.0

09 May 22:15
4ba9356

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.4.1...v3.0.0

v2.4.1

21 Apr 18:15
c96c858

Choose a tag to compare

What's Changed

  • Add Locator::try_promote_strict method by @jssblck in #22

Full Changelog: v2.4.0...v2.4.1

v2.4.0

19 Apr 00:23
b2a5f1b

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.3.1...v2.4.0

v2.3.0

30 Oct 19:37
1a05e8c

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

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