From f7ab41583e2bb4425ce7ac89b123089d0f07836a Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 16 Mar 2022 20:25:44 -0400 Subject: fix: cargo publish fails without absolute paths (#13993) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 4e3ed37037a2aa1edeac260dc3463a81d9cf9b88. Co-authored-by: Bartek IwaƄczuk --- ext/web/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext/web') diff --git a/ext/web/lib.rs b/ext/web/lib.rs index d199b7bfe..21fa285ba 100644 --- a/ext/web/lib.rs +++ b/ext/web/lib.rs @@ -27,6 +27,7 @@ use serde::Serialize; use std::borrow::Cow; use std::cell::RefCell; use std::fmt; +use std::path::PathBuf; use std::usize; use crate::blob::op_blob_create_object_url; @@ -352,6 +353,10 @@ fn op_encoding_encode_into( }) } +pub fn get_declaration() -> PathBuf { + PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_web.d.ts") +} + #[derive(Debug)] pub struct DomExceptionQuotaExceededError { pub msg: String, -- cgit v1.2.3