| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
This commit executes maint/add_warning with the just added change to
deny string slices except in tests.
I recommend auditing this by checking out the previous commit followed
by running the script yourself and then verifying that the diff is
identical to this commit.
This commit makes cargo clippy fail. We will add exceptions in the next
commit.
|
| |
|
|
|
|
|
|
|
| |
Fixes part of #2193.
(Edits from nickm: I selected the cases here that I could verify
were correct from immediate context.)
Edited-by: Nick Mathewson <[email protected]>
|
| |
|
|
| |
Run maint/add_warning
|
| |
|
|
|
|
|
|
| |
The new `Iso8601TimeSlug` is useful for encoding a timestamp as a `Slug`
(i.e. in a filename).
This is needed, for example, for #1692, to encode a timestamp as key
denotator.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
The `slug` docs say slugs are not allowed to contain uppercase
characters, so let's return an error if they do.
Part of #1195
|
| | |
|
| |
|
|
|
|
|
|
| |
This also removes a TODO regarding adding a `Nickname` type for
representing `HsClientSpecifier` and `HsNickname` (we don't need it if
`Slug`s are non-empty).
Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1931#note_2990227
|
| | |
|
| |
|
|
|
|
|
|
| |
The internal representation of `HsNickname` will soon be `Slug`,
and nicknames can contain hyphens, so let's add `-` to the allowed
charset.
Part of #1092
|
| | |
|
| |\
| |
| |
| |
| | |
TryIntoSlug
See merge request tpo/core/arti!1922
|
| | | |
|
| |\ \
| | |
| | |
| | |
| | | |
slug: Implement the AsRefs for Slug as well as for SlugRef
See merge request tpo/core/arti!1929
|
| | |/
| |
| |
| |
| | |
Otherwise you can't use &Slug where someone wants &impl AsRef<Path>,
which is rather sad.
|
| |/ |
|
| |
|
|
|
|
|
|
|
| |
Abolish it, sprinkling cfg all over, rather than having it be
uninhabited.
See
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1912#note_2988746
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1912#note_2988748
|
|
|
I need this for state_dir (#1163, !1853).
I intend that this should be used for arti paths (#1092, #1193).
See also #1195.
Implements the spec in #1192 but doesn't connect it to anything yet.
|