From 1316312c0c0f0225922b94fc6bfa2e07e3a85ac4 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Sun, 27 Jun 2010 20:48:28 -0700 Subject: Only translate or dwarf-emit items or stubs locally defined or used. Avoids instantiating O(sizeof(standard-library)) worth of imports stubs on each 'use std'. Closes issue 13. --- src/lib/sys.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/lib') 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; -- cgit v1.2.3