From e7a8cbf26bf0a384f0701c9ee7bb377da084473e Mon Sep 17 00:00:00 2001 From: messense Date: Sun, 19 Jul 2020 17:29:47 +0800 Subject: [PATCH] Rename napi_rs to napi --- napi-derive/README.md | 4 ++-- napi/src/threadsafe_function.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/napi-derive/README.md b/napi-derive/README.md index 6e663dfd..63ae9338 100644 --- a/napi-derive/README.md +++ b/napi-derive/README.md @@ -4,9 +4,9 @@ ```rust #[macro_use] -extern crate napi_rs as napi; +extern crate napi; #[macro_use] -extern crate napi_rs_derive; +extern crate napi_derive; use napi::{CallContext, Error, JsNumber, JsUnknown, Module, Result, Status}; use std::convert::TryInto; diff --git a/napi/src/threadsafe_function.rs b/napi/src/threadsafe_function.rs index 4a84dae4..2083eee2 100644 --- a/napi/src/threadsafe_function.rs +++ b/napi/src/threadsafe_function.rs @@ -20,10 +20,10 @@ pub trait ToJs: Copy + Clone { /// /// ``` /// #[macro_use] -/// extern crate napi_rs_derive; +/// extern crate napi_derive; /// /// use std::thread; -/// use napi_rs::{ +/// use napi::{ /// Number, Result, Env, CallContext, JsUndefined, JsFunction, /// sys::{ /// napi_threadsafe_function_call_mode::{ @@ -34,7 +34,7 @@ pub trait ToJs: Copy + Clone { /// } /// } /// }; -/// use napi_rs::threadsafe_function::{ +/// use napi::threadsafe_function::{ /// ToJs, ThreadsafeFunction, /// }; ///