summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorRichard Carson <Rscarson@rogers.com>2024-11-12 12:49:49 -0500
committerGitHub <noreply@github.com>2024-11-12 17:49:49 +0000
commit01f3451869f56dc0651d8cd30bf8540aeb462c04 (patch)
tree66213b19d200b8f3b3461141c3cf43081f564638 /ext
parentc371b2a492c60f47ce6b96b4df129c5d01706e1b (diff)
chore: make fields public on `PermissionDeniedError` and `deno_kv::KvConfig` (#26798)
A few small changes to avoid needing unsafe mem transmutes to instantiate the extensions --------- Signed-off-by: Richard Carson <Rscarson@rogers.com>
Diffstat (limited to 'ext')
-rw-r--r--ext/kv/config.rs21
1 files changed, 11 insertions, 10 deletions
diff --git a/ext/kv/config.rs b/ext/kv/config.rs
index 6e2e2c3a1..7166bcbcc 100644
--- a/ext/kv/config.rs
+++ b/ext/kv/config.rs
@@ -1,16 +1,17 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+#[derive(Clone, Copy, Debug)]
pub struct KvConfig {
- pub(crate) max_write_key_size_bytes: usize,
- pub(crate) max_read_key_size_bytes: usize,
- pub(crate) max_value_size_bytes: usize,
- pub(crate) max_read_ranges: usize,
- pub(crate) max_read_entries: usize,
- pub(crate) max_checks: usize,
- pub(crate) max_mutations: usize,
- pub(crate) max_watched_keys: usize,
- pub(crate) max_total_mutation_size_bytes: usize,
- pub(crate) max_total_key_size_bytes: usize,
+ pub max_write_key_size_bytes: usize,
+ pub max_read_key_size_bytes: usize,
+ pub max_value_size_bytes: usize,
+ pub max_read_ranges: usize,
+ pub max_read_entries: usize,
+ pub max_checks: usize,
+ pub max_mutations: usize,
+ pub max_watched_keys: usize,
+ pub max_total_mutation_size_bytes: usize,
+ pub max_total_key_size_bytes: usize,
}
impl KvConfig {