landstrip 0.18.0

Sandbox for coding agents with parametrized state
// SPDX-License-Identifier: LGPL-2.1-or-later
// Copyright (c) 2026 Jarkko Sakkinen

//! Fallback platform implementation for unsupported platforms.
//!
//! Returns an error to communicate that the current operating system is not yet
//! supported by landstrip.

use crate::engine::error::Error;
use crate::engine::policy::AccessPolicy;
#[cfg(unix)]
use crate::engine::trap_fd::TrapFd;
use anyhow::Result;
use std::ffi::{OsStr, OsString};

#[cfg(unix)]
pub(crate) fn execute(
    _policy: &AccessPolicy,
    _tool: &OsStr,
    _args: &[OsString],
    _trap_fd: &TrapFd,
) -> Result<i32> {
    Err(Error::PlatformUnsupported.into())
}

#[cfg(not(unix))]
pub(crate) fn execute(_policy: &AccessPolicy, _tool: &OsStr, _args: &[OsString]) -> Result<i32> {
    Err(Error::PlatformUnsupported.into())
}