Skip to content

Commit

Permalink
chore: cala_cel_interpreter -> cel_interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
thevaibhav-dixit committed May 10, 2024
1 parent ce5f4c0 commit fefda90
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cala-ledger-core-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cala-cel-interpreter = { path = "../cala-cel-interpreter/", package = "cala-cel-interpreter" }
cel-interpreter = { path = "../cala-cel-interpreter/", package = "cala-cel-interpreter" }

serde = { workspace = true }
serde_json = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions cala-ledger-core-types/src/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ macro_rules! entity_id {
}
}

impl From<$name> for cala_cel_interpreter::CelValue {
impl From<$name> for cel_interpreter::CelValue {
fn from(id: $name) -> Self {
cala_cel_interpreter::CelValue::Uuid(id.0)
cel_interpreter::CelValue::Uuid(id.0)
}
}

Expand Down
4 changes: 2 additions & 2 deletions cala-ledger-core-types/src/tx_template.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cala_cel_interpreter::{CelExpression, CelType, CelValue};
use cel_interpreter::{CelExpression, CelType, CelValue};
use serde::{Deserialize, Serialize};

use super::primitives::*;
Expand Down Expand Up @@ -59,7 +59,7 @@ impl TryFrom<&CelValue> for ParamDataType {
type Error = String;

fn try_from(value: &CelValue) -> Result<Self, Self::Error> {
use cala_cel_interpreter::CelType::*;
use cel_interpreter::CelType::*;
match CelType::from(value) {
Int => Ok(ParamDataType::INTEGER),
String => Ok(ParamDataType::STRING),
Expand Down
2 changes: 1 addition & 1 deletion cala-ledger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import = []
[dependencies]
cala-types = { path = "../cala-ledger-core-types", package = "cala-ledger-core-types" }
cala-tracing = { path = "../cala-tracing", features = ["grpc"] }
cala-cel-interpreter = { path = "../cala-cel-interpreter" }
cel-interpreter = { path = "../cala-cel-interpreter", package = "cala-cel-interpreter" }

chrono = { workspace = true }
derive_builder = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion cala-ledger/src/tx_template/cel_context.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cala_cel_interpreter::CelContext;
use cel_interpreter::CelContext;

pub(super) fn initialize() -> CelContext {
let mut ctx = CelContext::new();
Expand Down
2 changes: 1 addition & 1 deletion cala-ledger/src/tx_template/entity.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use derive_builder::Builder;
use serde::{Deserialize, Serialize};

use cala_cel_interpreter::CelExpression;
pub use cala_types::{primitives::TxTemplateId, tx_template::*};
use cel_interpreter::CelExpression;

use crate::entity::*;
#[cfg(feature = "import")]
Expand Down
2 changes: 1 addition & 1 deletion cala-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cala-types = { path = "../cala-ledger-core-types", package = "cala-ledger-core-t
cala-tracing = { path = "../cala-tracing", features = ["http", "grpc"] }
cala-ledger = { path = "../cala-ledger", features = ["import"]}
cala-ledger-outbox-client = { path = "../cala-ledger-outbox-client" }
cala-cel-interpreter = { path = "../cala-cel-interpreter" }
cel-interpreter = { path = "../cala-cel-interpreter", package = "cala-cel-interpreter" }

anyhow = { workspace = true }
async-graphql = { workspace = true }
Expand Down

0 comments on commit fefda90

Please sign in to comment.