Skip to content

Commit

Permalink
feat: add storage layer to remote-settings component
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberb committed Oct 25, 2024
1 parent b8f83af commit acf12a1
Show file tree
Hide file tree
Showing 5 changed files with 513 additions and 32 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ commands:
- run:
name: Verify the build environment
command: ./libs/verify-desktop-environment.sh
# Install SQLite development libraries
- run:
name: Install SQLite development libraries
command: sudo apt-get install libsqlite3-dev
run-tests:
steps:
- run: automation/tests.py rust-tests
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion components/remote_settings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ error-support = { path = "../support/error" }
viaduct = { path = "../viaduct" }
url = "2.1" # mozilla-central can't yet take 2.2 (see bug 1734538)
camino = "1.0"
rusqlite = "0.31.0"

[build-dependencies]
uniffi = { workspace = true, features = ["build"] }
Expand All @@ -32,4 +33,4 @@ mockall = "0.11"
mockito = "0.31"
# We add the perserve_order feature to guarantee ordering of the keys in our
# JSON objects as they get serialized/deserialized.
serde_json = { version = "1", features = ["preserve_order"] }
serde_json = { version = "1", features = ["preserve_order"] }
2 changes: 2 additions & 0 deletions components/remote_settings/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ pub enum Error {
AttachmentsUnsupportedError,
#[error("Error configuring client: {0}")]
ConfigError(String),
#[error("Database error: {0}")]
DatabaseError(#[from] rusqlite::Error),
}

// Define how our internal errors are handled and converted to external errors
Expand Down
Loading

0 comments on commit acf12a1

Please sign in to comment.