| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
Done using:
```
for crate in $(./maint/list_crates | rg '^(tor|arti-)'); do
cargo set-version -p $crate 0.37.0
done
|
| | |
|
| |
|
|
| |
This silences a new warning on nightly.
|
| |
|
|
|
|
|
|
|
|
|
| |
This commit moves the "Naming Convention" of the parse2::poc module into
the respective module, as it does not apply to parse2 itself, as
outlined in arti!3462.
With this commit, there remains `NdaSystemTimeDeprecatedSyntax` as the
only type outside poc following this naming schema. However, because it
is more or less already deprecated anyways, there is no real need to
bother with it any further.
|
| |
|
|
|
|
|
| |
tor_bytes also has a write_onto method. And types (especially utility
types like `Ignored`) might conceivably implement both!
No need for semver update since this was pub(crate) in the previous release.
|
| |
|
|
|
| |
This is in the ItemValueParseable derive, so the individual fields are
Arguments, not Items.
|
| | |
|
| |\
| |
| |
| |
| | |
tor-netdoc: Parameterise RelayFlagsParser by an options trait instead
See merge request tpo/core/arti!3489
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
Since we expose the relay_flags module, it makes sense to give this a
shorter name.
(It had a longer name when it was part of the netstatus module.)
|
| | |
| |
| |
| | |
The generic parser type is easy enough to name now.
|
| | |
| |
| |
| |
| |
| |
| | |
This avoids a lot of messing about with const generics.
Suggested by the author of enumset:
https://github.com/Lymia/enumset/issues/74#issuecomment-3561337369
|
| |\ \
| | |
| | |
| | |
| | | |
tor-netdoc: Move parse2/test.rs to test2.rs
See merge request tpo/core/arti!3486
|
| | | |
| | |
| | |
| | | |
Tidy up the imports.
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Now that this module is not inside parse2 its identifier namespace
oughtn't to be parse-specific. Rename things so that every
imports/aliases related to parsing implies parsing in its name.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
We're going to use this for the encoder testing too, so it needs to be
not buried inside parse2.
This commit is the file rename plus minimal changes to make it compile.
|
| |\ \ \
| |_|/
|/| |
| | |
| | | |
tor-netdoc: parse2: Combine MultiplicitySelector
See merge request tpo/core/arti!3478
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
as per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3478#note_3291482
encode::MultiplicitySelector doesn't actually exist yet in this
branch, but it will do. Don't mention that fact as we'll probably
just forget to update this comment...
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | | |
The encoder is going to need to have a different
MultiplicitySelector (just because of different variance, really)
so we mustn't import it under this name.
|
| | | |
| | |
| | |
| | |
| | | |
There is no conflict between the different uses. Having just one type
makes things simpler.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
We're going to combine all the Selector types, so it won't be able to
have these.
The diff is misleading: it's docs for the Selectors that's moving.
|
| |\ \ \
| |_|/
|/| |
| | |
| | |
| | |
| | | |
tor-llcrypto: Stop deriving Deref in CtByteArray
Closes #2172
See merge request tpo/core/arti!3432
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
We're going to have separate traits for encoding.
|
| | | |
| | |
| | |
| | | |
Once upon a time this trait handled multiplicity. But it doesn't any more.
|
| | | | |
|
| | | |
| | |
| | |
| | | |
This is not impl for all FromStr. We have NormalItemArgument now.
|
| | |/
|/|
| |
| | |
This was added at some point, but not documented.
|
| |\ \
| | |
| | |
| | |
| | | |
tor-netdoc: Make much more of encode module public
See merge request tpo/core/arti!3471
|
| | | |
| | |
| | |
| | |
| | | |
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3471#note_3288716
|
| | | |
| | |
| | |
| | |
| | | |
clippy points out that if argument-less `new` can exist, so should
Default.
|
| | | |
| | |
| | |
| | |
| | | |
My planned new derive for encoding will be pub, but cfg gated, like
parse2 is.
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
My planned encoding derive macro is going to provide keywords as
literal strings.
(The purpose of this trait is to allow the old parser to be generic
over its keyword constants, not to provide type-safety against passing
non-keyword strings to document encoders. Such bugs aren't very
likely and will be especially unlikely when we're deriving encoders.)
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
My planned encoding derive macro is not going to use `decl_keyword!`
but will need to call `NetdocEncoder::item`.
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
NetdocEncoder::item uses it this way. Presumably it is right at
least in those cases where this method is called.
The only implementor of this trait right now is the output from
`decl_keyword!` in the old parser, which is (generally) expected to be
the actual keyword.
|
| | | |
| | |
| | |
| | |
| | | |
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3477#note_3289536
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
EnumSet<RelayFlag> implements PartialEq, so we can derive this rather
than open-coding it.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
The only thing generated by this macro is `set_iter_keywords` which
is only used in the test to check that the macro call is correct.
Abolish it all.
|
| | | |
| | |
| | |
| | |
| | |
| | | |
This existed because it was once an impl on the old RelayFlags.
Now, it's on RelayFlag which is sensibly FromStr.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Abolish the constants with the transitional names.
This also abolishes the controversial name `H_S_DIR`, which Rust case
transformation rules generated from `HSDir`.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Now:
`RelayFlag` is a single flag, which is a different type to
`RelayFlags`.
`FromStr` and `Display` are now implemented in a normal way for a
single flag.
We don't use bitflags, with its funky input syntax, any more.
Instead, we have a normal enum.
No longer is it possible to have a `RelayFlags` with "unknown bits"
set (whatever that means). (Therefore, an associated test case for
this is now gone.)
The names are principally specified just as enum variant names. The
enum variant names can be identical to the network document keywords.
Briefly, we provide constants in capitals, for the benefit of all the
call sites. That means that *this* commit can contain only the
primary changes.
A few macro-generated things have been adjusted in this commit, but
they are actually going to go away.
Indentation is now wrong. We'll fix that at the end.
|