From a44349dfdfecacdd4ccd343a984b05abb728bf88 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 8 Jan 2021 03:08:51 +0100 Subject: feat: denort binary (#9041) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- runtime/permissions.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime') 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>) -> HashSet { } } -#[derive(Clone, Debug, PartialEq, Default)] +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct PermissionsOptions { pub allow_env: bool, pub allow_hrtime: bool, -- cgit v1.2.3