johnandersen777.bsky.social/atlibs-socialweb-computer-requester
socialweb.computer market requester and policy modules for atlibs, with its web pages and lexicons
0
0
// The kcp under-4-cpus policy as a module; the logic is shared in crates/policy.
use abi::{Handle, Run, entries};
use policy::{Kind, Policy};
use serde_json::Value;
const POLICY: Policy = Policy { name: "under-4-cpus", kind: Kind::UnderCpus };
fn evaluate_handler(run: Run<Value>) -> Result<Handle, String> {
policy::evaluate(&POLICY, run)
}
entries! { evaluate => evaluate_handler }