forked from PRQL/prql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: prqlc crate * docs * fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix * fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix * Update .gitignore Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> * Enable compiling with wasm (but compile basically nothing) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * revert test-rust * Disable test linking in prqlc * changelog Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Co-authored-by: Maximilian Roos <m@maxroos.com>
- Loading branch information
1 parent
9cc853f
commit acf9b42
Showing
9 changed files
with
77 additions
and
29 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ target | |
**/.idea | ||
|
||
/*.prql | ||
*/*.prql | ||
_*.prql | ||
|
||
# Appears when using Docker container | ||
.Trash-0 | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[package] | ||
description = "CLI interface for the PRQL compiler" | ||
name = "prqlc" | ||
|
||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
rust-version.workspace = true | ||
version.workspace = true | ||
|
||
[lib] | ||
doctest = false | ||
test = false | ||
|
||
[target.'cfg(not(target_family="wasm"))'.dependencies] | ||
anyhow = {version = "1.0.57"} | ||
ariadne = "0.1.5" | ||
atty = "0.2.14" | ||
clap = {version = "4.1.1", features = ["derive"]} | ||
clio = {version = "0.2.4", features = ['clap-parse']} | ||
color-eyre = "0.6.1" | ||
env_logger = {version = "0.9.1", features = ["termcolor"]} | ||
itertools = "0.10.3" | ||
prql-compiler = {path = '..'} | ||
serde_json = "1.0.81" | ||
serde_yaml = "0.9.1" | ||
|
||
[target.'cfg(not(target_family="wasm"))'.dev-dependencies] | ||
insta = {version = "1.26", features = ["colors", "glob", "yaml"]} |
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,15 @@ | ||
// We put all the code apart from a facade in `lib.rs` so we can easily disable | ||
// its compilation for wasm targets. | ||
// | ||
// We still want to allow compilation for wasm, because we compile the whole | ||
// workspace for wasm in our tests. | ||
|
||
#[cfg(not(target_family = "wasm"))] | ||
fn main() -> color_eyre::eyre::Result<()> { | ||
prqlc::main() | ||
} | ||
|
||
#[cfg(target_family = "wasm")] | ||
fn main() { | ||
panic!("WASM not supported by `prqlc`. `prql-compiler` is the library."); | ||
} |
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