Skip to content

Commit

Permalink
move image module to next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Apr 19, 2023
1 parent 26ec98a commit 3860e0e
Show file tree
Hide file tree
Showing 8 changed files with 178 additions and 233 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ semver = "1.0.16"
serde = { version = "1.0.152", features = ["derive"] }
serde_json = "1.0.93"
serde_qs = "0.11.0"
serde_with = "2.3.2"
serde_yaml = "0.9.17"
syn = "1.0.107"
tempfile = "3.3.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/turbo-binding/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub mod turbopack {
#[cfg(feature = "__turbopack_node")]
pub use turbopack_node as node;
#[cfg(feature = "__turbopack_static")]
pub use turbopack_static;
pub use turbopack_static as r#static;
#[cfg(feature = "__turbopack_swc_utils")]
pub use turbopack_swc_utils as swc_utils;
#[cfg(feature = "__turbopack_test_utils")]
Expand Down
4 changes: 2 additions & 2 deletions crates/turbopack-image/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ image = { workspace = true, default-features = false, features = [
"webp-encoder",
] }
indexmap = { workspace = true }
mime = { workspace = true }
serde = { workspace = true }
serde_with = { workspace = true }
turbo-tasks = { workspace = true }
turbo-tasks-fs = { workspace = true }
turbopack-core = { workspace = true }
turbopack-ecmascript = { workspace = true }
turbopack-static = { workspace = true }

[build-dependencies]
turbo-tasks-build = { workspace = true }
6 changes: 1 addition & 5 deletions crates/turbopack-image/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
pub mod module_type;
mod process;
mod source;
pub mod process;

pub fn register() {
turbo_tasks::register();
turbo_tasks_fs::register();
turbopack_core::register();
turbopack_ecmascript::register();
turbopack_static::register();
include!(concat!(env!("OUT_DIR"), "/register.rs"));
}
54 changes: 0 additions & 54 deletions crates/turbopack-image/src/module_type.rs

This file was deleted.

Loading

0 comments on commit 3860e0e

Please sign in to comment.