add specialization to docs

This commit is contained in:
Nikolay Kim 2017-06-18 09:28:21 -07:00
parent 93b1dd8262
commit 005c36548b
4 changed files with 4 additions and 3 deletions

View File

@ -75,7 +75,7 @@ features = ["extension-module"]
**`src/lib.rs`** **`src/lib.rs`**
```rust ```rust
#![feature(proc_macro)] #![feature(proc_macro, specialization)]
extern crate pyo3; extern crate pyo3;
use pyo3::{py, PyResult, Python, PyModule}; use pyo3::{py, PyResult, Python, PyModule};

View File

@ -4,6 +4,7 @@ Python module generation is powered by unstable [Procedural Macros](https://doc.
```rust ```rust
#![feature(proc_macro)] #![feature(proc_macro)]
extern crate pyo3; extern crate pyo3;
# fn main() {} # fn main() {}
``` ```

View File

@ -70,7 +70,7 @@ features = ["extension-module"]
**`src/lib.rs`** **`src/lib.rs`**
```rust ```rust
#![feature(proc_macro)] #![feature(proc_macro, specialization)]
extern crate pyo3; extern crate pyo3;
use pyo3::{py, PyResult, Python, PyModule}; use pyo3::{py, PyResult, Python, PyModule};

View File

@ -78,7 +78,7 @@
//! # Example //! # Example
//! //!
//! ```rust //! ```rust
//! #![feature(proc_macro)] //! #![feature(proc_macro, specialization)]
//! //!
//! extern crate pyo3; //! extern crate pyo3;
//! use pyo3::{py, Python, PyResult, PyObject, PyModule, PyString}; //! use pyo3::{py, Python, PyResult, PyObject, PyModule, PyString};