Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Still trying and failing to get linking to work while testing.
- Loading branch information
Showing
with
41 additions
and 7 deletions.
- +1 −0 configure.ac
- +6 −1 src/common/Makefile.nmake
- +10 −3 src/common/include.am
- +7 −0 src/rust/external/.cargo/config.in
- +2 −0 src/rust/external/Cargo.toml
- +9 −0 src/rust/external/build.rs
- +1 −1 src/rust/external/crypto_digest.rs
- +0 −1 src/rust/external/external.rs
- +1 −0 src/rust/include.am
- +4 −1 src/rust/tor_rust/include.am
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -0,0 +1,7 @@ | ||
| # Additional linker instructions for finding local, non-installed libraries | ||
|
|
||
| [target.x86_64-unknown-linux-gnu.or-crypto-digest] | ||
| root = "@BUILDDIR@" | ||
| rustc-link-search = ["native=@BUILDDIR@/src/common/", "native=@BUILDDIR@/src/or/"] | ||
| rustc-link-lib = ["static=or-crypto-digest", "static=tor"] | ||
| rustc-flags = ["-L@BUILDDIR@/src/common/libor-crypto-digest.a"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -2,6 +2,8 @@ | ||
| authors = ["The Tor Project"] | ||
| version = "0.0.1" | ||
| name = "external" | ||
| links = "or-crypto-digest" | ||
| build = "build.rs" | ||
|
|
||
| [dependencies] | ||
| libc = "0.2.22" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -0,0 +1,9 @@ | ||
| // Copyright (c) 2018, The Tor Project, Inc. | ||
| // Copyright (c) 2018, isis agora lovecruft | ||
| // See LICENSE for licensing information | ||
|
|
||
| fn main() { | ||
| // We don't do anything here, because the directives in src/rust/external/.cargo/config | ||
| // override what cargo directives would have gone here. See | ||
| // https://doc.rust-lang.org/cargo/reference/build-scripts.html for more information. | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -4,7 +4,6 @@ | ||
| use libc::{c_char, c_int}; | ||
| use std::ffi::CString; | ||
|
|
||
| #[link(name = "tor")] | ||
| extern "C" { | ||
| fn tor_version_as_new_as( | ||
| platform: *const c_char, | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters