3 ms·
Which, incidentally, is how Zig does it: const thing = @import("relative/path/to/thing.zig"); const package = @import("packagename");
by AnIdiotOnTheNet 8y ago
Which, incidentally, is how Zig does it:
const thing = @import("relative/path/to/thing.zig");
const package = @import("packagename");
- gpm 8y agoAnd rust `extern crate foo` `extern crate "foo-bar" as foo_bar` This is all legal identifiers but `use std::path::Path;` `use std::path::Path as int; // For maximum confusion` And not that anyone uses this part but: `mod bazz;` `#[path = "bazz-bar.rs"] mod bazz_bar;`