Skip to content
المشاريع

حول

إطار عمل سريع لواجهات المستخدم، مكتوب بلغة Rust ويعطي الأولوية لوحدة معالجة الرسومات، بتصميم تصريحي وتفاعلي.

تطوير الويب والتطبيقات

كيف تُقاس هذه الأرقام

ما يمكنك فعله

  • Cross-platform: runs on Windows, macOS, Linux, Android, iOS and the web.
  • Platform plugins: write a platform plugin to call APIs only one platform has.
  • Reactive: no state notifications to keep in sync by hand.
  • Bring your own shader: every effect is a pluggable shader, the built-in component library included.

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+١
خلال 15 يومًا
+١٦
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل
Tessera Logo

Tessera

简体中文 doc Stars CI License

A fast, GPU-first Rust UI framework that is declarative and reactive.

Features

If you encounter any issues, please feel free to submit an issue.

Overview

use tessera_components::{
    alignment::{CrossAxisAlignment, MainAxisAlignment},
    column::column,
    md3::{button::button, surface::surface, text::text, theme::material_theme},
};
use tessera_foundation::modifier::ModifierExt as _;
use tessera_ui::{Dp, Modifier, remember, tessera};

#[tessera]
pub fn app() {
    let count = remember(|| 0i32);

    material_theme().child(move || {
        surface()
            .modifier(Modifier::new().fill_max_size())
            .child(move || {
                column()
                    .modifier(Modifier::new().fill_max_size())
                    .main_axis_alignment(MainAxisAlignment::Center)
                    .cross_axis_alignment(CrossAxisAlignment::Center)
                    .children(move || {
                        text(count.get().to_string()).size(Dp(40.0));
                        button()
                            .filled()
                            .on_click(move || count.with_mut(|c| *c += 1))
                            .child(|| text("Increment"));
                    });
            });
    });
}

This is a complete counter application! For more details, please refer to the Quick Start Guide.

Start a project

cargo install cargo-tessera
cargo tessera new my-app
cd my-app && cargo tessera dev

See the getting started guide for more, or try the web demo.

Contributing

See the contributing guide for setup, checks, and pull requests.

Acknowledgements

  • wgpu, a powerful graphics API abstraction layer.
  • winit, a cross-platform windowing and event handling library.
  • glyphon, a text rendering solution.
  • Original logo design by @ktechhydle.

License

Tessera is dual-licensed under the MIT License or the Apache 2.0 License.

Star History

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…