summaryrefslogtreecommitdiff
path: root/crates/tor-checkable/semver.md
Commit message (Collapse)AuthorAgeFilesLines
* tor-checkable: Fix a wrong ref in semver.mdIan Jackson2026-07-231-1/+1
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/4223#note_3438344
* tor-checkable: TimeBound: Provide new build_intersect APIIan Jackson2026-07-231-0/+1
|
* tor-checkable: Rename `TimeBound::is_valid_at` to `check_valid_at`Ian Jackson2026-07-231-0/+1
| | | | | I find this names confusing. To my mind "is" implies a function returning `bool`.
* tor-checkable: Rename `TimeBound::check_valid_*` to `if_valid_*`Ian Jackson2026-07-231-0/+2
| | | | | | | I find these names confusing. To my mind "check" implies a function returning `Result<(), _>`. Some other APIs use `unwrap` here but I think `if` is good.
* tor-checkable: Deprecate `TimeBound::check_valid_at_opt`Ian Jackson2026-07-231-0/+1
|
* tor-checkable: TimeBound: Make wrapped type an associated typeIan Jackson2026-07-231-0/+1
| | | | | It wouldn't make much sense for one concrete type to be unwrappable variously as different inner types.
* tor-checkable: TimeBound: Make is_valid_at a provided methodIan Jackson2026-07-231-0/+1
| | | | | | | | | | | Now that we have `bounds()`, we can centralise this implementation and delete the implementations. I don't think it's necessary to provide an engineered safeguard against downstreams overriding this method. Any existing implementors of this trait will break because they must provide `.bounds()` now, which is an opportunity to notice that the `is_valid_at` can be deleted. But, if it is not deleted, nothing goes wrong.
* tor-checkable: TimeBound: remove Error associated typeIan Jackson2026-07-231-1/+1
| | | | | This was always TimeValidityError. And we want to rely on that so we can do the validity checking more centrally.
* tor-checkable: TimeBound: Add bounds accessorIan Jackson2026-07-231-0/+1
| | | | | | | This makes a `TimeBound` much more convenient to work with, will allow more centralisation. This replaces temporary `bound` inherent method on `TimeRangeBound`.
* tor-checkable: TimeRange: Provide intersect_bounds methodIan Jackson2026-07-231-1/+1
|
* tor-checkable: TimeRange: Provide a more complete APIIan Jackson2026-07-231-0/+2
| | | | | This is our time range type, so it wants a bunch of useful methods and conversions.
* tor-checkable: Introduce TimeRange aliasIan Jackson2026-07-231-0/+1
|
* tor-checkable: TimeRangeBound: Rename extend_tolerance to extend_end_boundIan Jackson2026-07-231-0/+1
| | | | | | | | | It was confusing that one of these functions had "which bound" mentioned in its name, but the other didn't. So add `end` and switch from `tolerance` to `bound` (see previous commit message). *This* commit should deal only in `extend_tolerance` and `end` and shouldn't touch `extend_start_bound` or `extend_pre_tolerance`.
* tor-checkable: TimeRangeBound: Rename extend_pre_tolerance to extend_start_boundIan Jackson2026-07-231-0/+1
| | | | | | | | | | | | | | Although it is often used to apply a tolerance, it doesn't make sense to say that this is extending the "tolerance" of a `TimeRangeBound`. A `TimeRangeBound` doesn't have a tolerance, only bounds. Also we should be consistent in our terminology, and use `start` rather than `pre`. We'll rename the other method too. Doing them one at a time will makes it easier to spot any "pre/start" vs "<nothing>/end" slips: *this* commit should deal only in `pre` and `start` and shouldn't touch `extend_tolerance`.
* tor-checkable: Re-export TimeRangeBound at the top-levelIan Jackson2026-07-231-0/+1
| | | | | | This module has only few public items - currently, only one. And it has the word "time" in it. It doesn't make sense to expect callers to write `timed::`.
* tor-checkable: Rename TimerangeBound to TimeRangeBoundIan Jackson2026-07-161-0/+1
| | | | For consistency with the TimeBound trait.
* tor-checkable: Rename Timebound to TimeBoundIan Jackson2026-07-161-0/+1
| | | | For consistency with TimeRangeBounds (currently TimerangeBounds).
* Remove semver.md files post-release.Gabriela Moldovan2024-12-021-1/+0
|
* TimerangeBound: Stop using std::ops::Bound.Wesley Aptekar-Cassels2024-11-251-0/+1
| | | | Fixes: #1691
* Remove semver.md files now that 1.1.0 is released.Nick Mathewson2022-11-301-1/+0
|
* tor-checkable: Make TimerangeBound::dangerously* non-experimentalIan Jackson2022-10-271-0/+1
I want one of these for the bridge descriptor downloader, and they seem reasonable to me.