Skip to content

Commit ec49ba6

Browse files
committed
feat: add pg_markup and pg_console from biome
1 parent 68012b2 commit ec49ba6

File tree

69 files changed

+2151
-28
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2151
-28
lines changed

Cargo.lock

Lines changed: 121 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,17 @@ line_index = { path = "./lib/line_index", version = "0.0.0" }
1515
tree_sitter_sql = { path = "./lib/tree_sitter_sql", version = "0.0.0" }
1616
tree-sitter = "0.20.10"
1717
tracing = "0.1.40"
18+
serde = "1.0.195"
19+
serde_json = "1.0.114"
20+
proc-macro2 = "1.0.66"
21+
termcolor = "1.4.1"
22+
unicode-width = "0.1.12"
23+
text-size = "1.1.1"
1824

1925
# postgres specific crates
2026
pg_lexer = { path = "./crates/pg_lexer", version = "0.0.0" }
27+
pg_markup = { path = "./crates/pg_markup", version = "0.0.0" }
28+
pg_console = { path = "./crates/pg_console", version = "0.0.0" }
2129
pg_workspace_new = { path = "./crates/pg_workspace_new", version = "0.0.0" }
2230
pg_fs = { path = "./crates/pg_fs", version = "0.0.0" }
2331
pg_diagnostics = { path = "./crates/pg_diagnostics", version = "0.0.0" }

crates/pg_base_db/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.0.0"
44
edition = "2021"
55

66
[dependencies]
7-
text-size = "1.1.1"
7+
text-size.workspace = true
88
line_index.workspace = true
99

1010
pg_statement_splitter.workspace = true

crates/pg_commands/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.0.0"
44
edition = "2021"
55

66
[dependencies]
7-
text-size = "1.1.1"
7+
text-size.workspace = true
88
sqlx = { version = "0.7.3", features = [ "runtime-async-std", "tls-rustls", "postgres", "json" ] }
99
async-std = "1.12.0"
1010
anyhow = "1.0.62"

crates/pg_completions/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
async-std = "1.12.0"
88
sqlx = { version = "0.7.3", features = [ "runtime-async-std", "tls-rustls", "postgres", "json" ] }
99

10-
text-size = "1.1.1"
10+
text-size.workspace = true
1111

1212
tree-sitter.workspace = true
1313
tree_sitter_sql.workspace = true

crates/pg_console/Cargo.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[package]
2+
name = "pg_console"
3+
version = "0.0.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
pg_markup = { workspace = true }
8+
text-size = { workspace = true }
9+
10+
serde = { workspace = true, optional = true, features = ["derive"] }
11+
termcolor = { workspace = true }
12+
unicode-segmentation = "1.12.0"
13+
unicode-width = { workspace = true }
14+
15+
[dev-dependencies]
16+
trybuild = "1.0.99"
17+
18+
[lib]
19+
doctest = false
20+
21+
[features]

crates/pg_console/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# `pg_console`
2+
3+
The crate contains a general abstraction over printing messages (formatted with markup) and diagnostics to a console.
4+
5+
## Acknowledgement
6+
7+
This crate was initially forked from [biome](https://github.com/biomejs/biome).
8+

0 commit comments

Comments
 (0)