Skip to content

Commit

Permalink
moving fastn-jdebug trait out
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Nov 15, 2024
1 parent f7abd18 commit 1ae5f27
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 10 deletions.
6 changes: 5 additions & 1 deletion Cargo.lock

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

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@ members = [
"fastn-ds",
"fastn-expr",
"fastn-issues",
"fastn-jdebug",
"fastn-js",
"fastn-lang",
"fastn-package",
"fastn-type",
"fastn-update",
"fastn-utils",
"fbt",
"fbt_lib",
"foo",
"ftd",
"ftd-ast",
"ftd-p1",
"ftd-tc",
"fbt",
"fbt_lib",
"t",
"fastn-type",
# "fastn-wasm",
# "fastn-runtime",
]
Expand Down
12 changes: 12 additions & 0 deletions fastn-jdebug/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "fastn-jdebug"
version = "0.1.0"
authors.workspace = true
edition.workspace = true
description.workspace = true
license = "BSD-3-Clause"
repository.workspace = true
homepage.workspace = true

[dependencies]
serde_json = "1"
3 changes: 3 additions & 0 deletions fastn-jdebug/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub trait JDebug {
fn debug(&self, source: &str) -> serde_json::Value;
}
4 changes: 2 additions & 2 deletions v0.5/Cargo.lock

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

4 changes: 0 additions & 4 deletions v0.5/fastn-section/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ pub use error::Error;
pub use fastn_section::warning::Warning;
pub use scanner::{Scannable, Scanner};

pub trait JDebug {
fn debug(&self, source: &str) -> serde_json::Value;
}

pub enum Diagnostic {
Error(Error),
Warning(Warning),
Expand Down

0 comments on commit 1ae5f27

Please sign in to comment.