Skip to main content

prns_config/
lib.rs

1#![forbid(unsafe_code)]
2
3pub mod configobj;
4pub mod diagnostic;
5pub mod discovery;
6pub mod editing;
7pub mod plan;
8pub mod reference;
9
10pub use configobj::{ConfigDocument, ParsedConfigObj, SourceLocations};
11pub use diagnostic::{
12    ConfigDiagnostic, ConfigDiagnosticCode, ConfigErrors, ConfigFix, ConfigFixSafety, ConfigReport,
13    ConfigSeverity, DisplayedConfigDiagnostic, SecretDisplay,
14};
15pub use discovery::{discover, DiscoveredConfig, DiscoveryError};
16pub use plan::{
17    parse_and_plan, parse_and_plan_named, plan_reference_config, AddressFamilyPreference,
18    AirtimeLimitCentiPercent, AutoInterfaceDataPort, AutoInterfaceDevicePolicy,
19    AutoInterfaceDiscoveryPort, AutoInterfaceDiscoveryScope, AutoInterfaceGroupId,
20    AutoInterfaceMulticastAddressType, AutoInterfacePlan, BlackholeExchangePlan,
21    BlackholePublicationPlan, BlackholeSources, BlackholeUpdateInterval,
22    ConfiguredInterfaceLifecycle, ConnectTimeoutSeconds, DaemonPlan, DiscoveryAdvertisementPlan,
23    DiscoveryAnnouncementPlan, DiscoveryEncryption, DiscoveryIfacPublication,
24    DiscoveryLocationPlan, DiscoveryPublicationProblem, I2pPeerPlan, I2pPeersPlan,
25    I2pReachabilityPlan, InterfaceAccessPlan, InterfaceDiscoveryPlan, LogLevel, LoggingPlan,
26    PipeCommandPlan, PipeRespawnDelay, PlannedInterface, PlannedMedium, ProtocolPlan,
27    RNodeBleAddress, RNodeBleName, RNodeBleTarget, RNodeMultiDevicePlan, RNodeMultiMemberPlan,
28    RNodeSerialDevice, RNodeTcpHost, RNodeTcpTarget, RNodeTransportPlan, ReadyCommandFlowControl,
29    ReconnectLimit, SerialDataBits, SerialLinePlan, SerialParity, SerialStopBits, SharedInstance,
30    SharedInstanceTransport, StationIdentificationPlan, TcpDialPlan, TcpListenHost, TcpListenPlan,
31    TcpTunnelMode, TransportIdentityPolicy, TransportPlan, UdpEndpointHost, UdpEndpointPlan,
32    UdpFlowPlan, WebSocketTargetPlan, RNODE_TCP_PORT,
33};
34pub use reference::{
35    InterfaceKind, RNodeRadio, RNodeSubinterface, ReferenceBlackholeExchange, ReferenceConfig,
36    ReferenceConfigParams, ReferenceDiscoveryConfig, ReferenceInterface,
37    ReferenceInterfaceDiscovery, ReferenceMode, ReferenceValue,
38};