landstrip 0.8.0

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

//! Fallback backend for unsupported platforms.
//!
//! Returns [`Error::UnsupportedPlatform`] to communicate that the current
//! operating system is not yet supported by landstrip.

use crate::backend::Backend;
use crate::error::{Error, Result};
use crate::policy::AccessPolicy;
use std::ffi::{OsStr, OsString};
use std::path::Path;

pub(crate) struct FallbackBackend;

impl Backend for FallbackBackend {
    fn execute(
        &self,
        _policy: &AccessPolicy,
        _policy_base: &Path,
        _command: &OsStr,
        _args: &[OsString],
    ) -> Result<()> {
        Err(Error::UnsupportedPlatform)
    }
}