mruby · GitHub

Commit 74ca22f

matzclaude

and

committed

mruby-io: introduce HAL for platform abstraction

separates platform-specific code into hal-posix-io and hal-win-io gems, making mruby-io platform-independent. HAL interface defined in mrbgems/mruby-io/include/io_hal.h covers file operations, I/O operations, and process operations. follows mruby-task dependency pattern where HAL gems depend on feature gem. ws2_32 library linked in hal-win-io gem. Co-authored-by: Claude <noreply@anthropic.com>

9 files changed

Lines changed: 1865 additions & 177 deletions

File tree

  • mrbgems

    • hal-posix-io

      • src

    • hal-win-io

      • src

    • mruby-io

      • include

      • src

Lines changed: 8 additions & 0 deletions

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,8 @@

1+

MRuby::Gem::Specification.new('hal-posix-io') do |spec|

2+

spec.license = 'MIT'

3+

spec.author = 'mruby developers'

4+

spec.summary = 'POSIX HAL for mruby-io (Linux, macOS, BSD, Unix)'

5+
6+

# HAL gem depends on feature gem - brings in mruby-io automatically

7+

spec.add_dependency 'mruby-io', core: 'mruby-io'

8+

end

Read the original on github.com ↗