Skip to content

Commit

Permalink
remove color library entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwparas committed Nov 14, 2023
1 parent c7fb472 commit 04cf993
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 102 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "src/main.rs"

[workspace.dependencies]
# This has to line up with the workspace version above
steel-core = { path = "./crates/steel-core", version = "0.5.0", features = ["web", "sqlite", "blocking_requests", "dylibs", "markdown", "colors"] }
steel-core = { path = "./crates/steel-core", version = "0.5.0", features = ["web", "sqlite", "blocking_requests", "dylibs", "markdown"] }

[dependencies]
once_cell = "1.17.0"
Expand Down
3 changes: 0 additions & 3 deletions crates/steel-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ radix_fmt = "1.0.0"
# For structs
smallvec = { version = "1.10.0", optional = true }

colored = { version = "2.0.0", optional = true }

# Pretty printing documentation
termimad = { version = "0.21.0", optional = true }

Expand Down Expand Up @@ -80,7 +78,6 @@ steel-gen = { path = "../steel-gen", version = "0.2.0" }

[features]
default = ["modules"]
colors = ["dep:colored"]
modules = []
jit = ["dep:cranelift", "dep:cranelift-module", "dep:cranelift-jit"]
dynamic = []
Expand Down
2 changes: 0 additions & 2 deletions crates/steel-core/src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ pub mod sqlite;
#[cfg(feature = "blocking_requests")]
pub mod blocking_requests;

pub mod colors;

pub use lists::UnRecoverableResult;

use crate::values::closed::HeapRef;
Expand Down
90 changes: 0 additions & 90 deletions crates/steel-core/src/primitives/colors.rs

This file was deleted.

5 changes: 0 additions & 5 deletions crates/steel-core/src/steel_vm/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ use crate::{
#[cfg(feature = "web")]
use crate::primitives::web::{requests::requests_module, websockets::websockets_module};

use crate::primitives::colors::string_coloring_module;

use crate::values::lists::List;
use im_rc::HashMap;
use num::{Signed, ToPrimitive};
Expand Down Expand Up @@ -322,7 +320,6 @@ thread_local! {
#[cfg(feature = "blocking_requests")]
pub static BLOCKING_REQUESTS_MODULE: BuiltInModule = crate::primitives::blocking_requests::blocking_requests_module();

pub static STRING_COLORS_MODULE: BuiltInModule = string_coloring_module();

#[cfg(feature = "sqlite")]
pub static SQLITE_MODULE: BuiltInModule = crate::primitives::sqlite::sqlite_module();
Expand Down Expand Up @@ -469,8 +466,6 @@ pub fn register_builtin_modules(engine: &mut Engine) {
engine.register_module(MUTABLE_VECTOR_MODULE.with(|x| x.clone()));
engine.register_module(PRIVATE_READER_MODULE.with(|x| x.clone()));

engine.register_module(STRING_COLORS_MODULE.with(|x| x.clone()));

#[cfg(feature = "web")]
engine
.register_module(WEBSOCKETS_MODULE.with(|x| x.clone()))
Expand Down

0 comments on commit 04cf993

Please sign in to comment.