diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2021-02-26 22:36:26 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 12:06:26 -0500 |
commit | 4b56537ea9d5c3e5f60ca817ed00c55dcbb2131c (patch) | |
tree | 175b10666df4af715268dc3a32306214c0a88859 /op_crates/crypto/lib.rs | |
parent | 07eb0090445c22001ba50e71359839250c1b749a (diff) |
chore: move crypto types to op_crates/crypto (#9609)
Diffstat (limited to 'op_crates/crypto/lib.rs')
-rw-r--r-- | op_crates/crypto/lib.rs | 5 |
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") +} |