Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

libcosmic

> 编程语言
Open source

GUI platform toolkit for developing COSMIC applications and applets

913 stars0 likes1 views
WebsiteGitHub

About

GUI platform toolkit for developing COSMIC applications and applets

LIBCOSMIC

A platform toolkit based on iced for creating applets and applications for the COSMIC™ desktop.

Documentation

  • API Documentation: Automatically generated from this repository via cargo doc
  • libcosmic Book: A reference for learning libcosmic

Templates

  • https://github.com/pop-os/cosmic-app-template: Application project template
  • https://github.com/pop-os/cosmic-applet-template: Panel applet project template

Dependencies

While libcosmic is written entirely in Rust, some of its dependencies may require shared system library headers to be installed. On Pop!_OS, the following dependencies are all that's necessary to compile a typical COSMIC project:

bash
sudo apt install cargo cmake just libexpat1-dev libfontconfig-dev libfreetype-dev libxkbcommon-dev pkgconf

Made-for-COSMIC Flatpak IDs

To identify a project as a COSMIC Application, add com.system76.CosmicApplication to the provides section of the project's metainfo.

xml

  com.system76.CosmicApplication

For COSMIC Applets, use com.system76.CosmicApplet.

xml

  com.system76.CosmicApplet

Examples

Some examples are included in the examples directory to to kickstart your COSMIC adventure. To run them, you need to clone the repository with the following commands:

bash
git clone --recurse-submodules https://github.com/pop-os/libcosmic
cd libcosmic

If you have already cloned the repository, run these to sync with the latest updates:

bash
git fetch origin
git checkout master
git reset --hard origin/master

The examples may then be run by their cargo project names, such as just run application.

Cargo Features

Available cargo features to choose from:

  • a11y: Experimental accessibility support.
  • animated-image: Enables animated images from the image crate.
  • debug: Enables addtional debugging features.
  • smol: Uses smol as the preferred async runtime.
    • Conflicts with tokio
  • tokio: Uses tokio as the preferred async runtime.
    • If unset, the default executor defined by iced will be used.
    • Conflicts with smol
  • wayland: Wayland-compatible client windows.
    • Conflicts with winit
  • winit: Cross-platform and X11 client window support
    • Conflicts with wayland
  • wgpu: GPU accelerated rendering with WGPU.
    • By default, softbuffer is used for software rendering.
  • xdg-portal: Enables XDG portal dialog integrations.

Project Showcase

  • COSMIC App Library
  • COSMIC Applets
  • COSMIC Launcher
  • COSMIC Notifications
  • COSMIC Panel
  • COSMIC Text Editor
  • COSMIC Settings

Licence

Licensed under the Mozilla Public License 2.0.

Contact

  • Mattermost
  • Lemmy
  • Mastodon
  • Reddit
  • Twitter
  • Instagram

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言