diff --git a/clash_lib/src/lib.rs b/clash_lib/src/lib.rs
index ef4898b..2652510 100644
--- a/clash_lib/src/lib.rs
+++ b/clash_lib/src/lib.rs
@@ -1,6 +1,8 @@
+#![feature(cfg_version)]
 #![feature(ip)]
 #![feature(sync_unsafe_cell)]
 #![feature(let_chains)]
+#![cfg_attr(not(version("1.86.0")), feature(unbounded_shifts))]
 
 #[macro_use]
 extern crate anyhow;
