Skip to content
Permalink
Browse files

The system allocator is now enforced by default

  • Loading branch information...
octavonce committed Jan 29, 2019
1 parent ca5d483 commit 342c7b745e961b2069bba555d7808ee7617b1660
Showing with 12 additions and 12 deletions.
  1. +5 −5 .travis.yml
  2. +1 −1 Dockerfile
  3. +1 −1 README.md
  4. +0 −5 src/events/src/lib.rs
  5. +5 −0 src/purple/main.rs
@@ -3,13 +3,13 @@ language: rust
cache: cargo

rust:
# - stable
- stable
- nightly

# matrix:
# allow_failures:
# - rust: nightly
# fast_finish: true
matrix:
allow_failures:
- rust: nightly
fast_finish: true

script:
- cargo build --verbose --all
@@ -15,7 +15,7 @@ RUN apk add 'openssl=1.0.2q-r0' 'openssl-dev=1.0.2q-r0' --no-cache --repository
ADD . /opt/app
WORKDIR /opt/app

RUN cargo rustc --release -- -C target-feature=+crt-static -C codegen-units=16 -Z thinlto
RUN cargo rustc --release -- -C target-feature=+crt-static -C codegen-units=16 # -Z thinlto
FROM alpine:edge

WORKDIR /opt/app
@@ -3,7 +3,7 @@
[![Discord](https://img.shields.io/discord/435827644915777536.svg)](https://discord.gg/UCYWSsd)
[![_pdf whitepaper](https://img.shields.io/badge/_pdf-whitepaper-blue.svg)](https://purpleprotocol.org/whitepaper/)

A full Rust re-write of the Purple Protocol. This is intended to be the de facto implementantion protocol and the most performant one.
A full Rust re-write of the Purple Protocol. This is intended to be the final and the most performant implementantion of the protocol.

Purple is a decentralized, programmable, multi-asset blockchain protocol that is capable of processing a large volume of transactions with ease.

@@ -16,11 +16,6 @@
along with the Purple Library. If not, see <http://www.gnu.org/licenses/>.
*/

#![feature(test)]

#[cfg(test)]
extern crate test;

#[cfg(test)]
#[macro_use]
extern crate quickcheck;
@@ -50,6 +50,11 @@ use crypto::Identity;
use elastic_array::ElasticArray128;
use std::sync::atomic::AtomicBool;
use futures::future::ok;
use std::alloc::System;

// Enforce usage of system allocator.
#[global_allocator]
static GLOBAL: System = System;

const NUM_OF_COLUMNS: u32 = 3;
const DEFAULT_NETWORK_NAME: &'static str = "purple";

0 comments on commit 342c7b7

Please sign in to comment.
You can’t perform that action at this time.