Corrige CI e release da v0.1.0
- CI (Windows/macOS): imports e `parse_mac` usados só no código Linux agora são `#[cfg(target_os = "linux")]` (e `Duration`/`Instant` também em `test`), eliminando os unused que viravam erro com `-D warnings` fora do Linux. - Release (RPM): `productName` passa a "Sabia" (ASCII) — o bundler de rpm recusa o acento; janela e interface seguem exibindo "Sabiá". Igual ao Guará. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
791538c9d9
commit
4343ff01bd
3 files changed
+9
-5
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "Sabiá",
|
"productName": "Sabia",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"identifier": "dev.sabia.app",
|
"identifier": "dev.sabia.app",
|
||||||
"build": {
|
"build": {
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ use crate::crack::{self, CrackReport};
|
|||||||
use crate::doctor::{self, DoctorReport};
|
use crate::doctor::{self, DoctorReport};
|
||||||
use crate::error::{Result, SabiaError};
|
use crate::error::{Result, SabiaError};
|
||||||
use crate::handshake::Handshake;
|
use crate::handshake::Handshake;
|
||||||
use crate::iface::{self, Interface, Mode};
|
#[cfg(target_os = "linux")]
|
||||||
|
use crate::iface::Mode;
|
||||||
|
use crate::iface::{self, Interface};
|
||||||
use crate::netlink::{self, ChannelInfo};
|
use crate::netlink::{self, ChannelInfo};
|
||||||
use crate::pcapreader::PcapReader;
|
use crate::pcapreader::PcapReader;
|
||||||
use crate::pcapwriter::PcapWriter;
|
use crate::pcapwriter::PcapWriter;
|
||||||
@@ -21,7 +23,9 @@ use std::collections::HashMap;
|
|||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
|
use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH};
|
#[cfg(any(target_os = "linux", test))]
|
||||||
|
use std::time::{Duration, Instant};
|
||||||
|
use std::time::{SystemTime, UNIX_EPOCH};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
pub struct ScanOptions {
|
pub struct ScanOptions {
|
||||||
@@ -774,6 +778,7 @@ fn append_audit(
|
|||||||
let _ = log.record(action, target, &text);
|
let _ = log.record(action, target, &text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
fn parse_mac(text: &str) -> Result<[u8; 6]> {
|
fn parse_mac(text: &str) -> Result<[u8; 6]> {
|
||||||
crate::dot11::parse_mac(text)
|
crate::dot11::parse_mac(text)
|
||||||
.ok_or_else(|| SabiaError::InvalidInput(format!("MAC inválido: {text}")))
|
.ok_or_else(|| SabiaError::InvalidInput(format!("MAC inválido: {text}")))
|
||||||
|
|||||||
@@ -5,9 +5,8 @@
|
|||||||
//! usa `AF_PACKET` e só existe no Linux. O chamador (engine) impõe limites de
|
//! usa `AF_PACKET` e só existe no Linux. O chamador (engine) impõe limites de
|
||||||
//! quantidade e intervalo e registra a ação na trilha de auditoria.
|
//! quantidade e intervalo e registra a ação na trilha de auditoria.
|
||||||
|
|
||||||
use crate::error::Result;
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
use crate::error::SabiaError;
|
use crate::error::{Result, SabiaError};
|
||||||
|
|
||||||
pub const BROADCAST: [u8; 6] = [0xff; 6];
|
pub const BROADCAST: [u8; 6] = [0xff; 6];
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user