rust-bitcoin-unsafe-fast/src/lib.rs

77 lines
1.9 KiB
Rust
Raw Normal View History

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(box_patterns)]
#![feature(custom_derive, plugin)]
2014-07-18 13:56:17 +00:00
#![feature(overloaded_calls)]
#![feature(unsafe_destructor)]
#![feature(unboxed_closure_sugar)]
#![feature(unboxed_closures)]
2015-03-26 15:44:49 +00:00
#![feature(concat_idents)]
#![feature(slice_patterns)]
2014-07-18 13:56:17 +00:00
// 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)]
#![plugin(serde_macros)]
2014-07-18 13:56:17 +00:00
extern crate alloc;
2015-03-26 19:21:48 +00:00
extern crate byteorder;
2014-07-18 13:56:17 +00:00
extern crate collections;
extern crate crypto;
extern crate eventual;
extern crate num_cpus;
2014-07-18 13:56:17 +00:00
extern crate rand;
2015-03-26 15:44:49 +00:00
extern crate rustc_serialize as serialize;
extern crate secp256k1;
extern crate serde;
2015-04-10 23:15:57 +00:00
#[cfg(test)] extern crate test;
2015-03-26 16:53:49 +00:00
extern crate time;
2014-07-18 13:56:17 +00:00
2015-04-10 23:15:57 +00:00
#[cfg(test)]
#[macro_use]
mod test_macros;
#[macro_use]
2014-07-18 13:56:17 +00:00
mod internal_macros;
#[macro_use]
2014-07-18 13:56:17 +00:00
pub mod macros;
pub mod network;
pub mod blockdata;
pub mod util;
pub mod wallet;
2014-07-18 13:56:17 +00:00
/// I dunno where else to put this..
fn assert_type_is_copy<T: Copy>() { }