Skip to content
Snippets Groups Projects
Select Git revision
  • 7c308146b2ba9ac6d5c99db00974ec3fc4572c4c
  • master default protected
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • tuxmain/anonymous-tx
  • debug/podman
  • hugo/195-doc
  • hugo/195-graphql-schema
  • hugo-tmp-dockerfile-cache
  • release/client-800.2 protected
  • release/runtime-800 protected
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
  • v0.4.1 protected
  • runtime-401 protected
  • v0.4.0 protected
41 results

shell.nix

Blame
  • lib.rs 91.67 KiB
    //  Copyright (C) 2018  The Duniter Project Developers.
    //
    // This program is free software: you can redistribute it and/or modify
    // it under the terms of the GNU Affero General Public License as
    // published by the Free Software Foundation, either version 3 of the
    // License, or (at your option) any later version.
    //
    // This program is distributed in the hope that it will be useful,
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <https://www.gnu.org/licenses/>.
    
    //! Crate containing Duniter-rust core.
    
    #![cfg_attr(feature = "strict", deny(warnings))]
    #![deny(
        missing_debug_implementations, missing_copy_implementations, trivial_casts, unsafe_code,
        unstable_features, unused_import_braces, unused_qualifications
    )]
    #![recursion_limit = "256"]
    
    #[macro_use]
    extern crate lazy_static;
    
    #[macro_use]
    extern crate log;
    
    #[macro_use]
    extern crate serde_json;
    
    extern crate duniter_conf;
    extern crate duniter_crypto;
    extern crate duniter_dal;
    extern crate duniter_documents;
    extern crate duniter_message;
    extern crate duniter_module;
    extern crate duniter_network;
    extern crate rand;
    extern crate sqlite;
    extern crate websocket;
    
    use std::collections::HashMap;
    use std::ops::Deref;
    use std::path::PathBuf;
    use std::str::from_utf8;
    use std::sync::mpsc;
    use std::thread;
    use std::time::{Duration, SystemTime, UNIX_EPOCH};
    
    use duniter_crypto::keys::ed25519::Signature;
    use duniter_crypto::keys::{ed25519, KeyPair, PrivateKey, PublicKey};
    use duniter_dal::dal_event::DALEvent;
    use duniter_dal::dal_requests::{DALReqBlockchain, DALRequest, DALResBlockchain, DALResponse};
    use duniter_dal::parsers::blocks::parse_json_block;
    use duniter_documents::blockchain::Document;
    use duniter_documents::Blockstamp;
    use duniter_message::DuniterMessage;
    use duniter_module::*;
    use duniter_network::network_endpoint::*;
    use duniter_network::network_head::*;
    use duniter_network::*;
    
    use websocket::{ClientBuilder, Message};
    
    mod ack_message;
    mod connect_message;
    pub mod constants;