-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Split parcel_core crate * Reorganise project slightly * Fix rust node-bindings imports * Fix hash include in the module tree * Fix doctests
- Loading branch information
Showing
16 changed files
with
98 additions
and
38 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
pub mod config_request; | ||
pub mod entry_request; | ||
mod request_options; | ||
pub mod request_options; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
//! Core re-implementation in Rust | ||
/// napi versions of `crate::core::requests` | ||
mod js_requests; | ||
/// New-type for paths relative to a project-root | ||
mod project_path; | ||
/// Request types and run functions | ||
mod requests; | ||
//! JavaScript API for `parcel_core::requests` | ||
pub mod js_requests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
name = "parcel_core" | ||
version = "0.1.0" | ||
edition = "2021" | ||
description = "Core logic for the parcel bundler" | ||
|
||
[features] | ||
default = [] | ||
napi_noop = ["napi-derive/noop"] | ||
|
||
[dependencies] | ||
parcel_filesystem = { path = "../parcel_filesystem" } | ||
parcel_napi_helpers = { path = "../parcel_napi_helpers" } | ||
parcel-resolver = { path = "../../packages/utils/node-resolver-rs" } | ||
|
||
anyhow = "1.0.82" | ||
glob = "0.3.1" | ||
mockall = "0.12.1" | ||
napi = "2.16.4" | ||
napi-derive = { version = "2.16.3" } | ||
serde = "1.0.200" | ||
serde_json = "1.0.116" | ||
toml = "0.8.12" | ||
xxhash-rust = { version = "0.8.2", features = ["xxh3"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
use xxhash_rust::xxh3::xxh3_64; | ||
|
||
/// Copy of one of the `node-bindings/src/hash.rs` functions. | ||
pub fn hash_string(s: String) -> String { | ||
let s = s.as_bytes(); | ||
let res = xxh3_64(s); | ||
format!("{:016x}", res) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//! Core re-implementation in Rust | ||
pub mod hash; | ||
/// New-type for paths relative to a project-root | ||
pub mod project_path; | ||
/// Request types and run functions | ||
pub mod requests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters