2014-07-18 13:56:17 +00:00
|
|
|
// Rust Bitcoin Library
|
|
|
|
// Written in 2014 by
|
|
|
|
// Andrew Poelstra <apoelstra@wpsoftware.net>
|
|
|
|
//
|
|
|
|
// To the extent possible under law, the author(s) have dedicated all
|
|
|
|
// copyright and related and neighboring rights to this software to
|
|
|
|
// the public domain worldwide. This software is distributed without
|
|
|
|
// any warranty.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the CC0 Public Domain Dedication
|
|
|
|
// along with this software.
|
|
|
|
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
|
|
|
//
|
|
|
|
|
|
|
|
//! # Rust Bitcoin Library
|
|
|
|
//!
|
|
|
|
//! This is a library for which supports the Bitcoin network protocol and associated
|
|
|
|
//! primitives. It is designed for Rust programs built to work with the Bitcoin
|
|
|
|
//! network.
|
|
|
|
//!
|
|
|
|
//! It is also written entirely in Rust to illustrate the benefits of strong type
|
|
|
|
//! safety, including ownership and lifetime, for financial and/or cryptographic
|
|
|
|
//! software.
|
|
|
|
//!
|
|
|
|
|
|
|
|
#![crate_name = "bitcoin"]
|
|
|
|
#![crate_type = "dylib"]
|
|
|
|
#![crate_type = "rlib"]
|
|
|
|
|
|
|
|
// Experimental features we need
|
|
|
|
#![feature(globs)]
|
|
|
|
#![feature(macro_rules)]
|
|
|
|
#![feature(overloaded_calls)]
|
|
|
|
#![feature(unsafe_destructor)]
|
2014-07-20 23:52:00 +00:00
|
|
|
#![feature(default_type_params)]
|
2014-08-31 16:50:46 +00:00
|
|
|
#![feature(struct_variant)]
|
|
|
|
#![feature(unboxed_closure_sugar)]
|
|
|
|
#![feature(unboxed_closures)]
|
2014-07-18 13:56:17 +00:00
|
|
|
|
|
|
|
#![comment = "Rust Bitcoin Library"]
|
|
|
|
#![license = "CC0"]
|
|
|
|
|
|
|
|
// Coding conventions
|
2014-08-30 23:08:38 +00:00
|
|
|
#![warn(non_uppercase_statics)]
|
2014-07-18 13:56:17 +00:00
|
|
|
#![deny(non_camel_case_types)]
|
2014-08-30 23:08:38 +00:00
|
|
|
#![deny(non_snake_case)]
|
2014-07-18 13:56:17 +00:00
|
|
|
#![deny(unused_mut)]
|
|
|
|
#![warn(missing_doc)]
|
|
|
|
|
|
|
|
extern crate alloc;
|
|
|
|
extern crate collections;
|
|
|
|
extern crate core;
|
|
|
|
extern crate num;
|
|
|
|
extern crate rand;
|
|
|
|
extern crate rustrt;
|
|
|
|
extern crate serialize;
|
|
|
|
extern crate sync;
|
2014-09-01 16:24:17 +00:00
|
|
|
extern crate test;
|
2014-07-18 13:56:17 +00:00
|
|
|
extern crate time;
|
|
|
|
|
2014-09-05 00:06:52 +00:00
|
|
|
extern crate "bitcoin-secp256k1-rs" as secp256k1;
|
|
|
|
extern crate "rust-crypto" as crypto;
|
2014-07-18 13:56:17 +00:00
|
|
|
|
|
|
|
mod internal_macros;
|
|
|
|
pub mod macros;
|
|
|
|
pub mod network;
|
|
|
|
pub mod blockdata;
|
|
|
|
pub mod util;
|
2014-08-28 16:49:03 +00:00
|
|
|
pub mod wallet;
|
2014-07-18 13:56:17 +00:00
|
|
|
|