Skip to content

Commit f663261

Browse files
authored
Merge pull request #2 from ckaznable/master
Fix docs.rs build
2 parents da4cfd8 + 5d8cc69 commit f663261

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ const MIN_VERSION: &str = "1.1.2";
44
const MAX_VERSION: &str = "1.2.0";
55

66
fn main() {
7+
if env::var("DOCS_RS").is_ok() {
8+
return;
9+
}
10+
711
if cfg!(target_os = "freebsd") {
812
env_var_set_default("OPENCC_INCLUDE_DIRS", "/usr/include/opencc");
913
env_var_set_default("OPENCC_LIB_DIRS", "/usr/lib");

0 commit comments

Comments
 (0)