mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 21:54:48 +00:00
chore: move crypto types to op_crates/crypto (#9609)
This commit is contained in:
parent
07eb009044
commit
4b56537ea9
4 changed files with 38 additions and 22 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue