Skip to content

Commit

Permalink
Added basic Rust project files
Browse files Browse the repository at this point in the history
  • Loading branch information
Yorick Peterse committed Apr 7, 2015
1 parent b022375 commit f8cf253
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
target
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
@@ -0,0 +1,5 @@
[package]

name = "aeon"
version = "0.0.1"
authors = ["Yorick Peterse <yorickpeterse@gmail.com>"]
1 change: 1 addition & 0 deletions src/gc/baker.rs
@@ -0,0 +1 @@
pub struct Baker;
1 change: 1 addition & 0 deletions src/gc/immix.rs
@@ -0,0 +1 @@
pub struct Immix;
5 changes: 5 additions & 0 deletions src/heap.rs
@@ -0,0 +1,5 @@
use object;

pub struct Heap {
members: Vec<object::Object>
}
13 changes: 13 additions & 0 deletions src/main.rs
@@ -0,0 +1,13 @@
mod gc {
mod baker;
mod immix;
}

mod heap;
mod object;
mod thread;
mod virtual_machine;

fn main() {

}
6 changes: 6 additions & 0 deletions src/object.rs
@@ -0,0 +1,6 @@
// To add: attributes (instance variables), methods and constants. Attributes
// would probably be heap data references, same for constants.
//
// Attribute references would be thread-local, constants (being always
// immutable) would be global.
pub struct Object;
1 change: 1 addition & 0 deletions src/register.rs
@@ -0,0 +1 @@
pub struct Register;
6 changes: 6 additions & 0 deletions src/thread.rs
@@ -0,0 +1,6 @@
use heap;

pub struct Thread {
young_heap: heap::Heap,
mature_heap: heap::Heap
}
1 change: 1 addition & 0 deletions src/variable_scope.rs
@@ -0,0 +1 @@
pub struct VariableScope;
1 change: 1 addition & 0 deletions src/virtual_machine.rs
@@ -0,0 +1 @@
pub struct VirtualMachine;

0 comments on commit f8cf253

Please sign in to comment.