Преглед изворни кода

Add instructions for usage

ticki пре 9 година
родитељ
комит
7f66ee45a0
1 измењених фајлова са 17 додато и 0 уклоњено
  1. 17 0
      README.md

+ 17 - 0
README.md

@@ -2,6 +2,23 @@
 
 Redox's fast & memory efficient userspace allocator.
 
+## Using ralloc
+
+Add ralloc to `Cargo.toml`:
+
+```toml
+[dependencies.ralloc]
+git = "https://github.com/redox-os/ralloc.git"
+```
+
+then import it in your main file:
+
+```rust
+extern crate ralloc;
+```
+
+`ralloc` is now ready to roll!
+
 ## Features
 
 ### Custom out-of-memory handlers