Skip to content

Commit

Permalink
fix: change direction, drop socket server and byte stream protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
lbennett-stacki committed Aug 16, 2024
1 parent 8b2d89d commit bae644f
Show file tree
Hide file tree
Showing 100 changed files with 86 additions and 2,321 deletions.
1,164 changes: 11 additions & 1,153 deletions lang/Cargo.lock

Large diffs are not rendered by default.

36 changes: 14 additions & 22 deletions lang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,25 @@
resolver = "2"

members = [
"packages/parser",
"packages/parser/__examples",
"packages/parser/lib",
"packages/parser/examples",
"packages/lexer/lib",
"packages/lexer/examples",

"packages/lexer",
"packages/lexer/__examples",
"packages/resolvers/var/lib",
"packages/resolvers/var/examples",
"packages/resolvers/provider/lib",

"packages/resolvers/var",
"packages/resolvers/provider",
"packages/resolvers/__examples/var",
"packages/code-generation/javascript/lib",
"packages/code-generation/javascript/examples",

"packages/position_indexer",
"packages/providers/env/lib",
"packages/providers/env/examples",
"packages/providers/aws-secrets-manager/lib",
"packages/providers/aws-secrets-manager/examples",

"packages/language-server",

"packages/code-generation/javascript",
"packages/code-generation/__examples/javascript",

"packages/providers/core/lib",
"packages/providers/core/load-testing",

"packages/providers/providers/env/lib",
"packages/providers/providers/env/server",
"packages/providers/providers/env/__examples",

"packages/providers/providers/aws-secrets-manager/lib",
"packages/providers/providers/aws-secrets-manager/server",
"packages/providers/providers/aws-secrets-manager/__examples",
"packages/position_indexer",

"testing/nvx-parsing",
"testing/unit",
Expand Down
11 changes: 0 additions & 11 deletions lang/packages/code-generation/__examples/javascript/Cargo.toml

This file was deleted.

11 changes: 11 additions & 0 deletions lang/packages/code-generation/javascript/examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "nv-examples-codegen-javascript"
version = "0.1.0"
edition = "2021"

[dependencies]
env_logger = "0.11.2"
log = "0.4.20"
nv-codegen-javascript = { path = "../../javascript/lib" }
nv-parser = { path = "../../../parser/lib" }
nv-lexer = { path = "../../../lexer/lib" }
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ version = "0.1.0"
edition = "2021"

[dependencies]
nv-parser = { path = "../../parser" }
nv-parser = { path = "../../../parser/lib" }

6 changes: 3 additions & 3 deletions lang/packages/language-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tokio = { version = "1.38.0", features = [
"macros",
"net",
] }
nv-parser = { path = "../parser" }
nv-lexer = { path = "../lexer" }
nv-parser = { path = "../parser/lib" }
nv-lexer = { path = "../lexer/lib" }
nv-position-indexer = { path = "../position_indexer" }
nv-var-resolver = { path = "../resolvers/var" }
nv-var-resolver = { path = "../resolvers/var/lib" }
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ edition = "2021"
[dependencies]
env_logger = "0.11.2"
log = "0.4.20"
nv-lexer = { path = "../" }
nv-lexer = { path = "../lib" }
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ unicode-segmentation = "1.11.0"

[dev-dependencies]
insta = { version = "1.38.0", features = ["yaml"] }
nv-unit-testing = { path = "../../testing/unit" }
nv-unit-testing = { path = "../../../testing/unit" }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ edition = "2021"
[dependencies]
env_logger = "0.11.2"
log = "0.4.20"
nv-parser = { path = "../" }
nv-lexer = { path = "../../lexer/" }
nv-parser = { path = "../lib" }
nv-lexer = { path = "../../lexer/lib" }
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ edition = "2021"
[dependencies]
env_logger = "0.11.2"
log = "0.4.20"
nv-lexer = { path = "../lexer" }
nv-lexer = { path = "../../lexer/lib" }
serde = { version = "1.0.199", features = ["derive", "rc"] }

[dev-dependencies]
insta = { version = "1.38.0", features = ["yaml"] }
nv-unit-testing = { path = "../../testing/unit" }
nv-unit-testing = { path = "../../../testing/unit" }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion lang/packages/position_indexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ edition = "2021"

[dependencies]
log = "0.4.21"
nv-parser = { path = "../parser" }
nv-parser = { path = "../parser/lib" }

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[dependencies]
log = "0.4.21"
nv-provider-core = { path = "../../../core/lib" }
nv-provider-core = { path = "../../core/lib" }
aws-config = { version = "1.1.8", features = ["behavior-version-latest"] }
aws-sdk-secretsmanager = "1.19.0"
async-trait = "0.1.79"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use nv_provider_core::{Provider, ProviderError, ProviderRetrievalError};
use nv_provider_core::{Provider, ProviderError};

#[derive(Debug)]
pub struct AwsSecretsManagerProvider {}
Expand All @@ -24,12 +24,10 @@ impl Provider for AwsSecretsManagerProvider {
log::error!("Aws env provider error: {:?}", err);

if let Ok(source) = err.into_source() {
return ProviderError::RetrievalError(ProviderRetrievalError {
message: source.source().map(|error| error.to_string()),
});
return ProviderError::Unknown("explodey".to_owned());
}

ProviderError::ExplodeyProvider
ProviderError::Unknown("explodey".to_owned())
})
.map(|response| {
let res = response.secret_string.unwrap_or_default();
Expand Down
14 changes: 0 additions & 14 deletions lang/packages/providers/core/lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,3 @@ edition = "2021"

[dependencies]
async-trait = "0.1.80"
bytes = "1.6.0"
ctrlc = "3.4.4"
env_logger = "0.11.3"
insta = "1.39.0"
log = "0.4.21"
tokio = { version = "1.38.0", features = [
"net",
"rt",
"sync",
"macros",
"io-util",
"time",
] }
tokio-util = "0.7.11"
58 changes: 0 additions & 58 deletions lang/packages/providers/core/lib/README.md

This file was deleted.

28 changes: 0 additions & 28 deletions lang/packages/providers/core/lib/src/errors.rs

This file was deleted.

Loading

0 comments on commit bae644f

Please sign in to comment.