Skip to content

Commit 87c7c54

Browse files
committed
Check if encryption is enabled when building encryption example docs
1 parent 0ef51f5 commit 87c7c54

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

parquet/src/arrow/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,13 @@
9494
//! println!("Read {} records.", record_batch.num_rows());
9595
//! ```
9696
//!
97+
//! #![cfg(feature = "encryption")]
9798
//! # Example of reading uniformly encrypted parquet file into arrow record batch
9899
//!
100+
#![cfg(feature = "encryption")]
99101
//! ```rust
102+
#![cfg(not(feature = "encryption"))]
103+
//! ```ignore
100104
//! # use arrow_array::{Int32Array, ArrayRef};
101105
//! # use arrow_array::{types, RecordBatch};
102106
//! # use parquet::arrow::arrow_reader::{
@@ -135,9 +139,13 @@
135139
//! println!("Read {} records.", record_batch.num_rows());
136140
//! ```
137141
//!
142+
//! #![cfg(feature = "encryption")]
138143
//! # Example of reading non-uniformly encrypted parquet file into arrow record batch
139144
//!
145+
#![cfg(feature = "encryption")]
140146
//! ```rust
147+
#![cfg(not(feature = "encryption"))]
148+
//! ```ignore
141149
//! # use arrow_array::{Int32Array, ArrayRef};
142150
//! # use arrow_array::{types, RecordBatch};
143151
//! # use parquet::arrow::arrow_reader::{

0 commit comments

Comments
 (0)