pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • PebbleOS
  • Mobile App
  • Examples
  • Index 01
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

PebbleOS

  • Overview
  • Start here
    • Getting started guide
    • Playground
  • Development
    • The pbl CLI
    • Build system
    • Samples
      • Threads
      • Mutexes
      • Semaphores
      • Message queues
      • Poll groups
      • Timers
      • Work queues
      • Delayed work
      • Heaps
      • Time
      • Idle states
      • Dining philosophers
      • Bounded buffer
      • Readers and writers
      • Sleeping barber
      • Priority inversion
      • Barrier
      • CRC
      • SHA-256
      • AES
      • Files
      • Settings
      • Translations
      • Input events
      • Loader
      • Log levels
      • Profiler
      • Shell commands
      • Task watchdog
      • Accelerometer
      • Ambient light
      • Backlight
      • Battery
      • Display
      • Flash
      • GPU
      • Magnetometer
      • Microphone
      • External RAM
      • Random numbers
      • Real-time clock
      • Speaker
      • Die temperature
      • Touchscreen
      • Vibration
      • Rust
      • Kernel benchmark
    • Emulator and simulator
    • Testing
    • Debugging
    • Conventions
  • System
    • Architecture overview
    • Kernel
    • Subsystems
    • Drivers
    • Services
    • Libraries
    • Third-party
    • Application SDK
  • Hardware
    • Boards
    • Programmers
  • Community
    • Contribution Guidelines
  • Reference
    • Reference
    • Kconfig options

Rust

Samples written in Rust, in samples/rust. Each one does what its C counterpart does, on the pebbleos crate.

  • Hello World in Rust

Kernel

  • Threads in Rust
  • Mutex in Rust
  • Semaphore in Rust
  • Message queue in Rust
  • Poll in Rust
  • Timer in Rust
  • Work queues in Rust
  • Delayed work in Rust
  • Heap in Rust
  • Time in Rust

Classic synchronization problems

  • Dining philosophers in Rust
  • Bounded buffer in Rust
  • Readers and writers in Rust
  • Sleeping barber in Rust
  • Priority inversion in Rust
  • Barrier in Rust

Generated from PebbleOS 7753e801d. This page is maintained in the pebbleos repository: docs/samples/rust/index.md.