Skip to content

Commit

Permalink
Break into a no_std crate and a first hacky test crate
Browse files Browse the repository at this point in the history
  • Loading branch information
James Munns committed Dec 31, 2018
1 parent 89bc867 commit a8fa6cc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
**/target
**/*.rs.bk
**/Cargo.lock
4 changes: 0 additions & 4 deletions Cargo.lock

This file was deleted.

8 changes: 8 additions & 0 deletions bbq-hacky-test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "bbq-hacky-test"
version = "0.1.0"
authors = ["James Munns <[email protected]>"]
edition = "2018"

[dependencies.bbqueue]
path = "../core"
5 changes: 2 additions & 3 deletions src/main.rs → bbq-hacky-test/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
mod bbqueue;
use crate::bbqueue::BBQueue;
use bbqueue::BBQueue;

fn main() {
// foo1();
foo1();
foo2();
}

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/bbqueue.rs → core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(dead_code)]
#![no_std]

pub type Result<T> = ::std::result::Result<T, ()>;
pub type Result<T> = ::core::result::Result<T, ()>;
use core::slice::from_raw_parts;
use core::sync::atomic::{AtomicUsize, Ordering::SeqCst};
use core::marker::PhantomData;
Expand Down

0 comments on commit a8fa6cc

Please sign in to comment.