创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

Rune 支持智能体无头测试 Rust 界面

AI 总结

Rune 被定位为面向 macOS、Windows、Linux 和网页的原生 GPU 渲染 Rust UI 框架,自带渲染器、文本、布局和弹簧动画。项目称应用可无头运行,使编程智能体能够渲染 PNG、检查元素树,并通过脚本输入驱动界面。Rune 目前处于预发布阶段,相关能力主要来自项目方描述。

深度见解

Rune 的特点是将无头验证融入 Rust UI 开发流程,为编程智能体提供 PNG 渲染、元素树检查和脚本化交互能力。

A native GPU-rendered Rust UI framework for macOS, Windows, Linux and the web, with its own renderer, text, layout and springs.

Every app can run headless, so an agent can render to PNG, dump the element tree and drive it with scripted input.

fn view(s: &State, : &mut Cx) -> El { let t = tok::theme(true); let label = text(if s.on { "Lights on" } else { "Lights off" }) .font(type::TITLE).color(t.text); let knob = el().key("knob").size(18.0, 18.0).radius(9.0).fill(t.knob) .absolute(if s.on { 18.0 } else { 2.0 }, 2.0); let switch = el().key("switch").role("switch").label("Lights").checked(s.on) .focusable(true).size(38.0, 22.0).radius(11.0) .fill(if s.on { tok::accent(0, true) } else { t.control_off }) .motion(motion::SNAPPY) .on_press(|s: &mut State| s.on = !s.on) .child(knob); col().w_full().h_full().center().gap(16.0).fill(t.bg).child(label).child(switch) }

Use it with your agent

Give your coding agent this repo. Have it start from examples/hello and crates/rune/README.md, then check its own work headlessly by rendering PNGs and inspecting the element tree.

Build me a with Rune (github.com/anomalyco/rune). Start from examples/hello and check your work headlessly.

#Rune#Anomaly

原文约 1 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。