Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hiro
Tor
Commits
530d6741
Commit
530d6741
authored
6 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'isis/bug26245' into maint-0.3.4
parents
9dd45456
748a0c7d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure.ac
+6
-0
6 additions, 0 deletions
configure.ac
src/rust/.cargo/config.in
+3
-0
3 additions, 0 deletions
src/rust/.cargo/config.in
src/rust/external/crypto_digest.rs
+3
-7
3 additions, 7 deletions
src/rust/external/crypto_digest.rs
with
12 additions
and
7 deletions
configure.ac
+
6
−
0
View file @
530d6741
...
...
@@ -462,6 +462,11 @@ if test "x$enable_rust" = "xyes"; then
fi
AC_DEFINE([HAVE_RUST], 1, [have Rust])
if test "x$enable_fatal_warnings" = "xyes"; then
RUST_WARN=
else
RUST_WARN=#
fi
if test "x$enable_cargo_online_mode" = "xyes"; then
CARGO_ONLINE=
RUST_DL=#
...
...
@@ -515,6 +520,7 @@ if test "x$enable_rust" = "xyes"; then
AC_SUBST(TOR_RUST_STATIC_NAME)
AC_SUBST(CARGO_ONLINE)
AC_SUBST(RUST_WARN)
AC_SUBST(RUST_DL)
dnl Let's check the rustc version, too
...
...
This diff is collapsed.
Click to expand it.
src/rust/.cargo/config.in
+
3
−
0
View file @
530d6741
...
...
@@ -6,3 +6,6 @@
@RUST_DL@ [source.vendored-sources]
@RUST_DL@ directory = '@TOR_RUST_DEPENDENCIES@'
@RUST_WARN@ [build]
@RUST_WARN@ rustflags = [ "-D", "warnings" ]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/rust/external/crypto_digest.rs
+
3
−
7
View file @
530d6741
...
...
@@ -66,13 +66,6 @@ const DIGEST_SHA512: digest_algorithm_t = 2;
const
DIGEST_SHA3_256
:
digest_algorithm_t
=
3
;
const
DIGEST_SHA3_512
:
digest_algorithm_t
=
4
;
/// The total number of digest algorithms we currently support.
///
/// We can't access these from Rust, because their definitions in C require
/// introspecting the `digest_algorithm_t` typedef, which is an enum, so we have
/// to redefine them here.
const
N_DIGEST_ALGORITHMS
:
usize
=
DIGEST_SHA3_512
as
usize
+
1
;
/// The number of hash digests we produce for a `common_digests_t`.
///
/// We can't access these from Rust, because their definitions in C require
...
...
@@ -117,6 +110,9 @@ struct common_digests_t {
/// A `smartlist_t` is just an alias for the `#[repr(C)]` type `Stringlist`, to
/// make it more clear that we're working with a smartlist which is owned by C.
#[allow(non_camel_case_types)]
// BINDGEN_GENERATED: This type isn't actually bindgen generated, but the code
// below it which uses it is. As such, this comes up as "dead code" as well.
#[allow(dead_code)]
type
smartlist_t
=
Stringlist
;
/// All of the external functions from `src/common/crypto_digest.h`.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment