summaryrefslogtreecommitdiff
path: root/runtime/permissions.rs
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-01-08 03:08:51 +0100
committerGitHub <noreply@github.com>2021-01-08 03:08:51 +0100
commita44349dfdfecacdd4ccd343a984b05abb728bf88 (patch)
tree690b5047cc54d62ce27013ebb199e9bdc7de0937 /runtime/permissions.rs
parente61e81eb57351782862aa50775ce4348f10b1856 (diff)
feat: denort binary (#9041)
This commit adds new binary target called "denort". It is a "lite" version of "deno" binary that can only execute code embedded inside the binary itself. Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'runtime/permissions.rs')
-rw-r--r--runtime/permissions.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/permissions.rs b/runtime/permissions.rs
index 16a611690..66087f2e6 100644
--- a/runtime/permissions.rs
+++ b/runtime/permissions.rs
@@ -8,6 +8,7 @@ use deno_core::error::AnyError;
use deno_core::url;
use deno_core::ModuleSpecifier;
use serde::Deserialize;
+use serde::Serialize;
use std::collections::HashSet;
use std::env::current_dir;
use std::fmt;
@@ -88,7 +89,7 @@ pub fn resolve_fs_allowlist(allow: &Option<Vec<PathBuf>>) -> HashSet<PathBuf> {
}
}
-#[derive(Clone, Debug, PartialEq, Default)]
+#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PermissionsOptions {
pub allow_env: bool,
pub allow_hrtime: bool,