summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/compute/sys.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-library/src/compute/sys.rs')
-rw-r--r--crates/typst-library/src/compute/sys.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/crates/typst-library/src/compute/sys.rs b/crates/typst-library/src/compute/sys.rs
deleted file mode 100644
index 6404e625..00000000
--- a/crates/typst-library/src/compute/sys.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-//! System-related things.
-
-use typst::eval::{Module, Scope, Version};
-
-/// Hook up all calculation definitions.
-pub(super) fn define(global: &mut Scope) {
- global.category("sys");
- global.define_module(module());
-}
-
-/// A module with system-related things.
-fn module() -> Module {
- let mut scope = Scope::deduplicating();
- scope.category("sys");
- scope.define(
- "version",
- Version::from_iter([
- env!("CARGO_PKG_VERSION_MAJOR").parse::<u32>().unwrap(),
- env!("CARGO_PKG_VERSION_MINOR").parse::<u32>().unwrap(),
- env!("CARGO_PKG_VERSION_PATCH").parse::<u32>().unwrap(),
- ]),
- );
- Module::new("sys", scope)
-}