On Fri, Feb 27, 2015 at 12:21 PM, Gilles Leblanc <gilles.lebl...@gmail.com> wrote: > Hello, I have a question. > > The crate components/util uses regular expressions. In it's lib.rs file it > has the following statements: > > #[cfg(target_os="linux")] > extern crate regex; > > Why is the extern crate regex only used under Linux?
Because the only function that uses functions from the `regex` crate is get_resident_segments(), which is Linux-only. See https://github.com/servo/servo/blob/master/components/util/memory.rs#L286. Nick _______________________________________________ dev-servo mailing list dev-servo@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-servo