aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/sys.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/sys.rs b/src/lib/sys.rs
index 3d858413..0eafc5ee 100644
--- a/src/lib/sys.rs
+++ b/src/lib/sys.rs
@@ -1,4 +1,17 @@
+export rustrt;
+
native "rust" mod rustrt {
+
+ // Explicitly re-export native stuff we want to be made
+ // available outside this crate. Otherwise it's
+ // visible-in-crate, but not re-exported.
+
+ export last_os_error;
+ export size_of;
+ export align_of;
+ export refcount;
+ export gc;
+
fn last_os_error() -> str;
fn size_of[T]() -> uint;
fn align_of[T]() -> uint;