Skip to content

Commit

Permalink
Merge pull request #49 from eneoli/dependabot/cargo/ariadne-0.5.0
Browse files Browse the repository at this point in the history
Bump ariadne from 0.4.1 to 0.5.0
  • Loading branch information
eneoli authored Dec 7, 2024
2 parents 4a3952a + 1fbc2d2 commit 9f282a2
Show file tree
Hide file tree
Showing 7 changed files with 141 additions and 6 deletions.
4 changes: 2 additions & 2 deletions 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 @@ -7,7 +7,7 @@ edition = "2021"
crate-type = ["cdylib", "rlib"]

[dependencies]
ariadne = "0.4.1"
ariadne = "0.5.0"
chumsky = "0.9.3"
console_error_panic_hook = "0.1.7"
itertools = "0.13.0"
Expand Down
93 changes: 93 additions & 0 deletions flake.lock

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

38 changes: 38 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-parts.url = "github:hercules-ci/flake-parts";
};

outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; }
{
systems = [
"x86_64-linux"
"aarch64-linux"
];

perSystem = { self', lib, system, pkgs, config, ... }: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;

overlays = with inputs; [
rust-overlay.overlays.default
];
};

devShells.default =
let
rust-toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
in
pkgs.mkShell {
packages = [
rust-toolchain
pkgs.wasm-pack
pkgs.nodejs
];
};
};
};
}
4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
channel = "stable"
components = ["rust-src", "rust-analyzer"]
targets = [ "wasm32-unknown-unknown" ]
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn format_errors<T: std::hash::Hash + Eq + std::fmt::Display>(
let mut error_output = Vec::new();

errors.into_iter().for_each(|e| {
Report::build(ReportKind::Error, (), e.span().start)
Report::build(ReportKind::Error, e.span())
.with_message(e.to_string())
.with_label(Label::new(e.span()).with_color(Color::Red))
.finish()
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() {

if let Err(err) = tokens.clone() {
err.into_iter().for_each(|e| {
Report::build(ReportKind::Error, (), e.span().start)
Report::build(ReportKind::Error, e.span())
.with_message(e.to_string())
.with_label(Label::new(e.span()).with_color(Color::Red))
.finish()
Expand All @@ -37,7 +37,7 @@ fn main() {
println!("{:#?}", err);

err.into_iter().for_each(|e| {
Report::build(ReportKind::Error, (), e.span().start)
Report::build(ReportKind::Error, e.span())
.with_message(e.to_string())
.with_label(Label::new(e.span()).with_color(Color::Red))
.finish()
Expand Down

0 comments on commit 9f282a2

Please sign in to comment.