aboutsummaryrefslogtreecommitdiff
path: root/src/rust
AgeCommit message (Collapse)Author
2018-09-14rust/protover: add ProtoSet::and_not_in()cypherpunks
This is a way more efficient version of retain().
2018-09-14Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-09-14Merge branch 'rust-protokeyword1-034' into rust-protokeyword1-035cypherpunks
2018-09-14Merge branch 'rust-protokeyword1' into rust-protokeyword1-034cypherpunks
2018-09-13rust/protover: validate unknown protocol names use only allowed characterscypherpunks
2018-09-12Merge branch 'maint-0.3.4'Nick Mathewson
2018-09-12Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-09-12rust/protover: fix check for overlapping rangescypherpunks
Closes ticket 27649. Bugfix on e6625113c98c281b0a649598d7daa347c28915e9.
2018-09-12rust/protover: remove version zero from testscypherpunks
This isn't legal according to dir-spec.txt. We can write separate tests for it if the spec is changed to make it legal.
2018-09-04Merge branch 'nss_squashed' into nss_mergeNick Mathewson
2018-08-21Merge remote-tracking branch 'teor/travis-osx-master'Nick Mathewson
2018-08-21Merge remote-tracking branch 'teor/travis-osx-034' into maint-0.3.4Nick Mathewson
2018-08-21Merge remote-tracking branch 'teor/travis-osx-033' into maint-0.3.3Nick Mathewson
2018-08-18rust: abort on panic in all profilescypherpunks
Until https://github.com/rust-lang/rust/issues/52652 is fixed, unwinding on panic is potentially unsound in a mixed C/Rust codebase. The codebase is supposed to be panic-free already, but just to be safe. This started mattering at commit d1820c1516a31a149fc51a9e5126bf899e4c4e08. Fixes #27199; bugfix on tor-0.3.3.1-alpha.
2018-08-17Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-08-17Merge branch 'maint-0.3.4'Nick Mathewson
2018-08-17Merge remote-tracking branch 'onionk/rust-protospace' into maint-0.3.3Nick Mathewson
2018-08-17rust/protover: don't accept whitespace in ProtoSet::from_str()cypherpunks
It's impossible for spaces to get here, since spaces are used as separators between individual protocol entries higher up. And it shouldn't ignore whitespace that isn't a literal space character, because that would differ from the C implementation. These were added in 9925d2e68709aa7346f4c5bc98ea1349df6741f3. Fixes #27177. Bugfix on 0.3.3.5-rc.
2018-08-17Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-08-17Merge branch 'maint-0.3.4'Nick Mathewson
2018-08-17rust/protover: fix hyphen parsing bug in ProtoSet::from_str()cypherpunks
It was parsing "1-2-3" as if it were 1-2, ignoring the 2nd hyphen and everything after. Introduced in d1820c1516a31a149fc51a9e5126bf899e4c4e08. Fixes #27164; bugfix on 0.3.3.1-alpha.
2018-08-17rust/protover: fix docs for UnvalidatedProtoEntry::from_strcypherpunks
This got shuffled around in b786b146edd33b025774819f54d7bba3d07bf832 and hasn't been accurate since 124caf28e6db1e7bf8cdfef25c55760c81fb91b5.
2018-08-17rust/protover: fix parsing docscypherpunks
The function takes an already validated utf-8 string, and it never checks if the version numbers are an empty string. That parse error happens later. Fix on 701c2b69f52cb4db46aa7455904e518b35fafc1a
2018-08-17rust/protover: fix ProtoEntry::from_str docscypherpunks
Texxt was copied from a function that returned a single tuple in 88b2f170e451567a3b0095a420544a675a5826b0.
2018-08-16rust: run rustfmtcypherpunks
2018-08-16rust: max_width=100, other rustfmt settings. #27071cypherpunks
These are the 12 stable and documented configuration options, set to their default values. use_small_heuristics is only stabilized in rustfmt 0.9, so maintain support for 0.8.x for now by commenting it out. comment_width is unstable and did nothing, since wrap_comments defaults to false. Default values gotten from `rustfmt --print-config default rustfmt.toml`. https://github.com/rust-lang-nursery/rustfmt/blob/e7932fa9c2591c45a37a24305de90cb63128afcf/Configurations.md
2018-08-16rust/docs: fix critical typo for missing_docs lintcypherpunks
Fix typo from fe66d06a45a4714141eba992fe87ec3dd5fa1c22. The exclamation point is what lets an attribute apply to an entire crate, without the ! it's practically a placebo. Fix on commits af182d4ab51d6a1a70559bbdcd4ab842aa855684 and b6059297d7cb76f0e00e2098e38d6677d3033340, and note there are still missing docs in both crypto and protover, for now. https://doc.rust-lang.org/reference/attributes.html
2018-08-10Merge branch 'travis-osx-034' into travis-osx-masterteor
Replace master .travis.yml with 034 .travis.yml. All the changes in master have been backported to the 034 .travis.yml already. Replace master src/test/test_rust.sh with 034 src/test/test_rust.sh, which was backported from master. One 033/034-specific commit needs to be reverted.
2018-08-10Merge branch 'travis-osx-033' into travis-osx-034teor
Replace 034 .travis.yml with 033 .travis.yml. Subsequent commits will restore 034 functionality. Replace 034 src/test/test_rust.sh with 033 src/test/test_rust.sh, which was backported from master.
2018-08-10Stop setting $CARGO_HOME in src/rust/tor_rust/include.amteor
cargo will use the user's $CARGO_HOME, or $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
2018-07-31Merge branch 'nss_dh_squashed' into nss_dh_squashed_mergedNick Mathewson
2018-07-31Make the rust tests link.Nick Mathewson
2018-07-18Add two more dependencies in build.rsNick Mathewson
2018-07-18Use the "testing" variant of several C libraries in build.rsNick Mathewson
2018-07-18Merge remote-tracking branch 'isis/bug26398'Nick Mathewson
2018-07-13Merge remote-tracking branch 'tor-github/pr/179'Nick Mathewson
2018-07-05Fix everything that previously referred to src/orNick Mathewson
2018-07-05And tell build.rs to stop looking in src/commonNick Mathewson
2018-07-05Fix build.rs to handle removed common.Nick Mathewson
2018-07-01Tabify all of the .am files.Nick Mathewson
2018-06-30Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-28Extract memarea into its own libraryNick Mathewson
2018-06-28Extract threading code into a new library.Nick Mathewson
Note that the workqueue code does *not* go here: it is logically at a higher level, since it needs to use libevent and the networking stack.
2018-06-27Move util_format into a new libtor-encoding libraryNick Mathewson
libtor-encoding is about various ways to transform data to and from character sequences.
2018-06-27Fix Rust cross compilation.Alex Xu (Hello71)
2018-06-27Merge branch 'sandbox_refactor'Nick Mathewson
2018-06-27Merge branch 'net_refactor'Nick Mathewson
2018-06-27Move sandbox code into a new library.Nick Mathewson
2018-06-27Move network code to libtor-net.Nick Mathewson
There are some additional changes to come: those points are marked by XXXX.
2018-06-26fixup! Extract core part of smartlist code into its own library.Nick Mathewson