Merge pull request #65 from TheBlueMatt/master
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Fri, 20 Jul 2018 03:31:37 +0000 (23:31 -0400)
committerGitHub <noreply@github.com>
Fri, 20 Jul 2018 03:31:37 +0000 (23:31 -0400)
Bump version for API overhauls, update deps and docs

Cargo.toml
build.rs
fuzz/Cargo.toml
src/ln/mod.rs
src/util/mod.rs

index e8570e25f140f313bd2bbd37da5dd9f8489cf828..2509901ad6803eaacb25e45bb8fde2319f3b327a 100644 (file)
@@ -1,12 +1,13 @@
 [package]
 name = "lightning"
-version = "0.0.3"
+version = "0.0.4"
 authors = ["Matt Corallo"]
 license = "Apache-2.0"
 repository = "https://github.com/rust-bitcoin/rust-lightning/"
 description = """
-A Bitcoin Lightning implementation in Rust.
-Still super-early code-dump quality and is missing large chunks. See README in git repo for suggested projects if you want to contribute. Don't have to bother telling you not to use this for anything serious, because you'd have to finish building it to even try.
+A Bitcoin Lightning library in Rust.
+Does most of the hard work, without implying a specific runtime, requiring clients implement basic network logic, chain interactions and disk storage.
+Still missing tons of error-handling. See GitHub issues for suggested projects if you want to contribute. Don't have to bother telling you not to use this for anything serious, because you'd have to build a client around it to even try.
 """
 build = "build.rs"
 
@@ -22,7 +23,7 @@ rand = "0.4"
 secp256k1 = "0.9"
 
 [build-dependencies]
-gcc = "0.3"
+cc = "1.0"
 
 [dev-dependencies.bitcoin]
 version = "0.13"
index 7dd340397ef5464ddb890ed75404401177fc350d..963075e920e2c87374f10e92ef1367aba9c3298f 100644 (file)
--- a/build.rs
+++ b/build.rs
@@ -1,9 +1,9 @@
-extern crate gcc;
+extern crate cc;
 
 fn main() {
        #[cfg(not(any(target_arch = "x86", target_arch = "x86_64", target_arch = "arm")))]
        {
-               let mut cfg = gcc::Build::new();
+               let mut cfg = cc::Build::new();
                cfg.file("src/util/rust_crypto_nonstd_arch.c");
                cfg.compile("lib_rust_crypto_nonstd_arch.a");
        }
index ac5373b7b18036148686dfa0d9bfe9c9a3eab1d6..077aacfaf753449ba1499b1ed66f5dc214999c82 100644 (file)
@@ -24,7 +24,7 @@ honggfuzz = { version = "0.5", optional = true }
 afl = { version = "0.3", optional = true }
 
 [build-dependencies]
-gcc = "0.3"
+cc = "1.0"
 
 # Prevent this from interfering with workspaces
 [workspace]
index 7cd4272e13c1013e5e4abe1d38380aa0bd4e76dd..add8b4df1aa2e722dbac5ce577a840c74d2ff5a0 100644 (file)
@@ -2,9 +2,13 @@ pub mod channelmanager;
 pub mod channelmonitor;
 pub mod msgs;
 pub mod router;
-pub mod peer_channel_encryptor;
 pub mod peer_handler;
 
+#[cfg(feature = "fuzztarget")]
+pub mod peer_channel_encryptor;
+#[cfg(not(feature = "fuzztarget"))]
+pub(crate) mod peer_channel_encryptor;
+
 #[cfg(feature = "fuzztarget")]
 pub mod channel;
 #[cfg(not(feature = "fuzztarget"))]
index a39d288488d0a18e984296e106e358dedbab82cf..008a9e1d7e1e0649b4fe07d92f1f2e142751adcc 100644 (file)
@@ -1,4 +1,3 @@
-pub mod transaction_utils;
 pub mod events;
 
 pub(crate) mod byte_utils;
@@ -6,6 +5,7 @@ pub(crate) mod chacha20poly1305rfc;
 pub(crate) mod internal_traits;
 pub(crate) mod rng;
 pub(crate) mod sha2;
+pub(crate) mod transaction_utils;
 
 #[cfg(feature = "fuzztarget")]
 pub use self::rng::reset_rng_state;