From d82a5f6e1bc878b0e6a695f88eb69404ca6d571d Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Sun, 16 Jun 2024 17:07:21 +0200 Subject: Make platform dependent code possible to disable by disabling libc and ansi features --- Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index a5f66ca..5b85730 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,11 @@ name = "textgraph" version = "0.1.0" edition = "2021" +[features] +default = ["libc", "ansi"] +ansi = [] +libc = ["dep:libc"] + [dependencies] -libc = "0.2.155" +libc = { version = "0.2.155", optional = true } -- cgit v1.2.3