This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![recursion_limit="512"] | |
| // This script prints all cpu features which active in this build. | |
| // There are 3 steps in usage of script: | |
| // 1. get list of features using `rustc --print target-features` | |
| // 2. put it into script (it has values actual for 2020-12-06 for x86-64 target). | |
| // 3. run script. | |
| fn pad_name(s: &str)->String{ | |
| let mut res = s.to_string(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use async_trait::async_trait; | |
| use hickory_resolver::TokioAsyncResolver; | |
| use http::Extensions; | |
| use pingora::lb::discovery::ServiceDiscovery; | |
| use pingora::lb::selection::{BackendIter, BackendSelection}; | |
| use pingora::lb::{Backend, Backends, LoadBalancer}; | |
| use pingora::protocols::l4::socket::SocketAddr; | |
| use pingora::{Error, ErrorSource, ErrorType, Result as PingoraResult}; | |
| use std::fmt::Debug; | |
| use std::net::{IpAddr, SocketAddrV4}; |
OlderNewer