Rename napi_rs to napi

This commit is contained in:
messense 2020-07-19 17:29:47 +08:00
parent efa9ba5892
commit e7a8cbf26b
2 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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,
/// };
///