summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-02-11 14:29:55 -0500
committerMason Reed <mason@vector35.com>2025-02-11 14:29:55 -0500
commit60927d114f7fffea016d58fed5d1a6ccde1ec130 (patch)
tree9b4bba17352fc747e9056b8402848c5d9aba515f /rust/src
parent5fd6a9e337c848a7fcd5c5111e9eaf396cfc3ad5 (diff)
Do not load user or repo plugins by default when initializing a headless instance in Rust API
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/headless.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/rust/src/headless.rs b/rust/src/headless.rs
index 3eb6ee57..f992c27e 100644
--- a/rust/src/headless.rs
+++ b/rust/src/headless.rs
@@ -111,14 +111,6 @@ impl InitializationOptions {
Self::default()
}
- pub fn minimal() -> Self {
- Self {
- user_plugins: false,
- repo_plugins: false,
- ..Self::default()
- }
- }
-
/// A license to override with, you can use this to make sure you initialize with a specific license.
///
/// This takes the form of a JSON array. The string should be formed like:
@@ -174,8 +166,8 @@ impl Default for InitializationOptions {
floating_license_duration: Duration::from_secs(900),
bundled_plugin_directory: bundled_plugin_directory()
.expect("Failed to get bundled plugin directory"),
- user_plugins: true,
- repo_plugins: true,
+ user_plugins: false,
+ repo_plugins: false,
}
}
}