summaryrefslogtreecommitdiff
path: root/op_crates/crypto/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'op_crates/crypto/lib.rs')
-rw-r--r--op_crates/crypto/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/op_crates/crypto/lib.rs b/op_crates/crypto/lib.rs
index 61290080d..b8fe3fefb 100644
--- a/op_crates/crypto/lib.rs
+++ b/op_crates/crypto/lib.rs
@@ -11,6 +11,7 @@ use deno_core::ZeroCopyBuf;
use rand::rngs::StdRng;
use rand::thread_rng;
use rand::Rng;
+use std::path::PathBuf;
pub use rand; // Re-export rand
@@ -41,3 +42,7 @@ pub fn op_crypto_get_random_values(
Ok(json!({}))
}
+
+pub fn get_declaration() -> PathBuf {
+ PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_crypto.d.ts")
+}