html-to-markdown 2.27.2 → 2.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -8
- data/ext/html-to-markdown-rb/native/Cargo.toml +1 -1
- data/ext/html-to-markdown-rb/native/src/conversion/mod.rs +6 -0
- data/ext/html-to-markdown-rb/native/src/conversion/tables.rs +71 -0
- data/ext/html-to-markdown-rb/native/src/lib.rs +27 -1
- data/lib/html_to_markdown/version.rb +1 -1
- data/lib/html_to_markdown.rb +29 -0
- data/rust-vendor/getrandom/.cargo-checksum.json +1 -1
- data/rust-vendor/getrandom/.cargo_vcs_info.json +1 -1
- data/rust-vendor/getrandom/CHANGELOG.md +62 -43
- data/rust-vendor/getrandom/Cargo.lock +49 -56
- data/rust-vendor/getrandom/Cargo.toml +2 -2
- data/rust-vendor/getrandom/Cargo.toml.orig +2 -2
- data/rust-vendor/getrandom/src/backends/efi_rng.rs +8 -10
- data/rust-vendor/getrandom/src/backends/getentropy.rs +13 -4
- data/rust-vendor/getrandom/src/backends/linux_android_with_fallback.rs +10 -25
- data/rust-vendor/getrandom/src/backends/netbsd.rs +17 -25
- data/rust-vendor/getrandom/src/backends/rdrand.rs +15 -9
- data/rust-vendor/getrandom/src/backends/rndr.rs +2 -1
- data/rust-vendor/getrandom/src/backends/vxworks.rs +7 -3
- data/rust-vendor/getrandom/src/backends/windows.rs +21 -5
- data/rust-vendor/getrandom/src/utils/lazy_bool.rs +39 -0
- data/rust-vendor/getrandom/src/utils/lazy_ptr.rs +57 -0
- data/rust-vendor/html-to-markdown-rs/Cargo.toml +2 -2
- data/rust-vendor/html-to-markdown-rs/README.md +29 -0
- data/rust-vendor/html-to-markdown-rs/src/convert_api.rs +368 -0
- data/rust-vendor/html-to-markdown-rs/src/converter/main.rs +10 -5
- data/rust-vendor/html-to-markdown-rs/src/converter/text_node.rs +2 -1
- data/rust-vendor/html-to-markdown-rs/src/lib.rs +3 -0
- data/rust-vendor/html-to-markdown-rs/src/prelude.rs +3 -0
- data/rust-vendor/html-to-markdown-rs/tests/issue_216_217_regressions.rs +82 -0
- data/rust-vendor/quote/.cargo-checksum.json +1 -1
- data/rust-vendor/quote/.cargo_vcs_info.json +1 -1
- data/rust-vendor/quote/.github/workflows/ci.yml +2 -2
- data/rust-vendor/quote/Cargo.lock +21 -21
- data/rust-vendor/quote/Cargo.toml +2 -2
- data/rust-vendor/quote/Cargo.toml.orig +2 -2
- data/rust-vendor/quote/README.md +0 -1
- data/rust-vendor/quote/src/lib.rs +1 -1
- data/rust-vendor/quote/src/to_tokens.rs +7 -0
- data/rust-vendor/quote/tests/ui/not-quotable.stderr +1 -1
- data/rust-vendor/quote/tests/ui/not-repeatable.stderr +3 -11
- data/rust-vendor/r-efi/.cargo-checksum.json +1 -1
- data/rust-vendor/r-efi/.cargo_vcs_info.json +1 -1
- data/rust-vendor/r-efi/AUTHORS +1 -0
- data/rust-vendor/r-efi/Cargo.lock +1 -1
- data/rust-vendor/r-efi/Cargo.toml +1 -3
- data/rust-vendor/r-efi/Cargo.toml.orig +1 -5
- data/rust-vendor/r-efi/NEWS.md +16 -0
- data/rust-vendor/r-efi/src/base.rs +1 -1
- data/rust-vendor/r-efi/src/lib.rs +27 -12
- data/rust-vendor/r-efi/src/protocols/absolute_pointer.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/block_io.rs +8 -8
- data/rust-vendor/r-efi/src/protocols/bus_specific_driver_override.rs +2 -2
- data/rust-vendor/r-efi/src/protocols/debug_support.rs +10 -10
- data/rust-vendor/r-efi/src/protocols/debugport.rs +8 -8
- data/rust-vendor/r-efi/src/protocols/decompress.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/device_path_from_text.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/device_path_to_text.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/device_path_utilities.rs +16 -16
- data/rust-vendor/r-efi/src/protocols/disk_io.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/disk_io2.rs +8 -8
- data/rust-vendor/r-efi/src/protocols/driver_binding.rs +6 -6
- data/rust-vendor/r-efi/src/protocols/driver_diagnostics2.rs +2 -2
- data/rust-vendor/r-efi/src/protocols/driver_family_override.rs +2 -2
- data/rust-vendor/r-efi/src/protocols/file.rs +28 -28
- data/rust-vendor/r-efi/src/protocols/graphics_output.rs +6 -6
- data/rust-vendor/r-efi/src/protocols/hii_database.rs +24 -24
- data/rust-vendor/r-efi/src/protocols/hii_font.rs +8 -8
- data/rust-vendor/r-efi/src/protocols/hii_font_ex.rs +10 -10
- data/rust-vendor/r-efi/src/protocols/hii_string.rs +10 -10
- data/rust-vendor/r-efi/src/protocols/ip4.rs +16 -16
- data/rust-vendor/r-efi/src/protocols/ip6.rs +18 -18
- data/rust-vendor/r-efi/src/protocols/load_file.rs +2 -2
- data/rust-vendor/r-efi/src/protocols/loaded_image.rs +2 -2
- data/rust-vendor/r-efi/src/protocols/managed_network.rs +16 -16
- data/rust-vendor/r-efi/src/protocols/memory_attribute.rs +6 -6
- data/rust-vendor/r-efi/src/protocols/mp_services.rs +15 -15
- data/rust-vendor/r-efi/src/protocols/pci_io.rs +26 -26
- data/rust-vendor/r-efi/src/protocols/platform_driver_override.rs +6 -6
- data/rust-vendor/r-efi/src/protocols/rng.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/service_binding.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/shell.rs +81 -81
- data/rust-vendor/r-efi/src/protocols/shell_dynamic_command.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/simple_file_system.rs +2 -2
- data/rust-vendor/r-efi/src/protocols/simple_network.rs +26 -26
- data/rust-vendor/r-efi/src/protocols/simple_text_input.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/simple_text_input_ex.rs +11 -11
- data/rust-vendor/r-efi/src/protocols/simple_text_output.rs +18 -18
- data/rust-vendor/r-efi/src/protocols/tcp4.rs +20 -20
- data/rust-vendor/r-efi/src/protocols/tcp6.rs +18 -18
- data/rust-vendor/r-efi/src/protocols/timestamp.rs +3 -3
- data/rust-vendor/r-efi/src/protocols/udp4.rs +16 -16
- data/rust-vendor/r-efi/src/protocols/udp6.rs +14 -14
- data/rust-vendor/r-efi/src/system.rs +115 -115
- data/rust-vendor/r-efi/src/vendor/intel/console_control.rs +6 -6
- data/rust-vendor/r-efi-5.3.0/.cargo-checksum.json +1 -0
- data/rust-vendor/r-efi-5.3.0/.cargo_vcs_info.json +6 -0
- data/rust-vendor/r-efi-5.3.0/.github/workflows/publish.yml +39 -0
- data/rust-vendor/r-efi-5.3.0/.github/workflows/rust-tests.yml +125 -0
- data/rust-vendor/r-efi-5.3.0/AUTHORS +74 -0
- data/rust-vendor/r-efi-5.3.0/Cargo.lock +16 -0
- data/rust-vendor/r-efi-5.3.0/Cargo.toml +70 -0
- data/rust-vendor/r-efi-5.3.0/Cargo.toml.orig +51 -0
- data/rust-vendor/r-efi-5.3.0/Makefile +85 -0
- data/rust-vendor/r-efi-5.3.0/NEWS.md +301 -0
- data/rust-vendor/r-efi-5.3.0/README.md +99 -0
- data/rust-vendor/r-efi-5.3.0/examples/freestanding.rs +34 -0
- data/rust-vendor/r-efi-5.3.0/examples/gop-query.rs +188 -0
- data/rust-vendor/r-efi-5.3.0/examples/hello-world.rs +55 -0
- data/rust-vendor/r-efi-5.3.0/src/base.rs +993 -0
- data/rust-vendor/r-efi-5.3.0/src/hii.rs +1300 -0
- data/rust-vendor/r-efi-5.3.0/src/lib.rs +182 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/absolute_pointer.rs +69 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/block_io.rs +70 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/bus_specific_driver_override.rs +32 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/debug_support.rs +835 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/debugport.rs +42 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/decompress.rs +37 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/device_path.rs +82 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/device_path_from_text.rs +26 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/device_path_to_text.rs +30 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/device_path_utilities.rs +63 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/disk_io.rs +40 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/disk_io2.rs +58 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/driver_binding.rs +42 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/driver_diagnostics2.rs +38 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/driver_family_override.rs +23 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/file.rs +183 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/graphics_output.rs +103 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/hii_database.rs +299 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/hii_font.rs +87 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/hii_font_ex.rs +107 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/hii_package_list.rs +14 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/hii_string.rs +71 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/ip4.rs +202 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/ip6.rs +264 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/load_file.rs +26 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/load_file2.rs +15 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/loaded_image.rs +39 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/loaded_image_device_path.rs +13 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/managed_network.rs +147 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/memory_attribute.rs +40 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/mp_services.rs +121 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/pci_io.rs +203 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/platform_driver_override.rs +46 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/rng.rs +83 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/service_binding.rs +20 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/shell.rs +295 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/shell_dynamic_command.rs +33 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/shell_parameters.rs +23 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/simple_file_system.rs +26 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/simple_network.rs +196 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/simple_text_input.rs +38 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/simple_text_input_ex.rs +85 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/simple_text_output.rs +86 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/tcp4.rs +224 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/tcp6.rs +202 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/timestamp.rs +32 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/udp4.rs +151 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/udp6.rs +137 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols.rs +54 -0
- data/rust-vendor/r-efi-5.3.0/src/system.rs +1130 -0
- data/rust-vendor/r-efi-5.3.0/src/vendor/intel/console_control.rs +37 -0
- data/rust-vendor/r-efi-5.3.0/src/vendor.rs +10 -0
- data/rust-vendor/tokio/.cargo-checksum.json +1 -1
- data/rust-vendor/tokio/.cargo_vcs_info.json +1 -1
- data/rust-vendor/tokio/CHANGELOG.md +94 -0
- data/rust-vendor/tokio/Cargo.lock +1549 -0
- data/rust-vendor/tokio/Cargo.toml +96 -83
- data/rust-vendor/tokio/Cargo.toml.orig +7 -7
- data/rust-vendor/tokio/README.md +1 -1
- data/rust-vendor/tokio/src/fs/open_options.rs +4 -1
- data/rust-vendor/tokio/src/fs/read.rs +4 -1
- data/rust-vendor/tokio/src/fs/write.rs +4 -1
- data/rust-vendor/tokio/src/io/async_write.rs +3 -4
- data/rust-vendor/tokio/src/io/poll_evented.rs +23 -1
- data/rust-vendor/tokio/src/io/stderr.rs +15 -1
- data/rust-vendor/tokio/src/io/stdout.rs +14 -0
- data/rust-vendor/tokio/src/io/util/async_write_ext.rs +2 -2
- data/rust-vendor/tokio/src/io/util/write_buf.rs +11 -2
- data/rust-vendor/tokio/src/lib.rs +12 -28
- data/rust-vendor/tokio/src/macros/select.rs +6 -8
- data/rust-vendor/tokio/src/net/tcp/socket.rs +25 -1
- data/rust-vendor/tokio/src/net/tcp/stream.rs +40 -1
- data/rust-vendor/tokio/src/process/unix/pidfd_reaper.rs +1 -41
- data/rust-vendor/tokio/src/runtime/blocking/pool.rs +18 -14
- data/rust-vendor/tokio/src/runtime/builder.rs +10 -4
- data/rust-vendor/tokio/src/runtime/handle.rs +3 -2
- data/rust-vendor/tokio/src/runtime/io/driver/uring.rs +49 -61
- data/rust-vendor/tokio/src/runtime/io/driver.rs +6 -5
- data/rust-vendor/tokio/src/runtime/mod.rs +20 -1
- data/rust-vendor/tokio/src/runtime/runtime.rs +71 -1
- data/rust-vendor/tokio/src/runtime/scheduler/current_thread/mod.rs +24 -8
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/worker.rs +5 -0
- data/rust-vendor/tokio/src/runtime/task/core.rs +1 -0
- data/rust-vendor/tokio/src/runtime/task/join.rs +7 -3
- data/rust-vendor/tokio/src/runtime/task/list.rs +5 -3
- data/rust-vendor/tokio/src/runtime/task/mod.rs +0 -5
- data/rust-vendor/tokio/src/runtime/tests/loom_blocking.rs +39 -1
- data/rust-vendor/tokio/src/signal/mod.rs +6 -17
- data/rust-vendor/tokio/src/signal/registry.rs +1 -1
- data/rust-vendor/tokio/src/signal/unix.rs +24 -44
- data/rust-vendor/tokio/src/signal/windows/sys.rs +52 -64
- data/rust-vendor/tokio/src/signal/windows.rs +35 -23
- data/rust-vendor/tokio/src/sync/mpsc/mod.rs +3 -1
- data/rust-vendor/tokio/src/sync/oneshot.rs +13 -0
- data/rust-vendor/tokio/src/sync/rwlock.rs +4 -5
- data/rust-vendor/tokio/src/sync/tests/loom_oneshot.rs +27 -1
- data/rust-vendor/tokio/src/task/blocking.rs +16 -1
- data/rust-vendor/tokio/src/task/builder.rs +2 -2
- data/rust-vendor/tokio/src/task/mod.rs +1 -1
- data/rust-vendor/tokio/src/task/spawn.rs +8 -3
- data/rust-vendor/tokio/src/task/yield_now.rs +13 -23
- data/rust-vendor/tokio/src/time/clock.rs +62 -0
- data/rust-vendor/tokio/src/util/memchr.rs +32 -4
- data/rust-vendor/tokio/src/util/sharded_list.rs +6 -4
- data/rust-vendor/tokio/tests/fs_link.rs +54 -0
- data/rust-vendor/tokio/tests/io_async_fd_memory_leak.rs +209 -0
- data/rust-vendor/tokio/tests/io_write_buf.rs +56 -0
- data/rust-vendor/tokio/tests/process_issue_7144.rs +8 -0
- data/rust-vendor/tokio/tests/rt_basic.rs +41 -0
- data/rust-vendor/tokio/tests/rt_common_before_park.rs +92 -0
- data/rust-vendor/tokio/tests/rt_metrics.rs +1 -1
- data/rust-vendor/tokio/tests/rt_panic.rs +12 -0
- data/rust-vendor/tokio/tests/rt_shutdown_err.rs +82 -0
- data/rust-vendor/tokio/tests/rt_threaded.rs +49 -1
- data/rust-vendor/tokio/tests/rt_unstable_metrics.rs +32 -0
- data/rust-vendor/tokio/tests/tcp_connect.rs +2 -3
- data/rust-vendor/tokio/tests/tcp_shutdown.rs +1 -3
- data/rust-vendor/tokio/tests/tcp_socket.rs +3 -4
- data/rust-vendor/tokio/tests/tcp_stream.rs +3 -0
- data/sig/html_to_markdown.rbs +46 -0
- data/spec/convert_with_tables_spec.rb +194 -0
- metadata +80 -3
- data/rust-vendor/getrandom/src/utils/lazy.rs +0 -64
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Rust Test Suite
|
|
3
|
+
#
|
|
4
|
+
# This workflow builds the project via Cargo, configures a suitable test
|
|
5
|
+
# environment, and then runs the test-suite defined in Cargo.
|
|
6
|
+
#
|
|
7
|
+
|
|
8
|
+
name: "Rust Test Suite"
|
|
9
|
+
|
|
10
|
+
on:
|
|
11
|
+
pull_request:
|
|
12
|
+
push:
|
|
13
|
+
branches-ignore: ["pr/**"]
|
|
14
|
+
tags: ["**"]
|
|
15
|
+
workflow_dispatch:
|
|
16
|
+
|
|
17
|
+
defaults:
|
|
18
|
+
run:
|
|
19
|
+
shell: "bash"
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
#
|
|
23
|
+
# CI with Default Configuration
|
|
24
|
+
#
|
|
25
|
+
# This simply runs `cargo build && cargo test` on all sources. We want to
|
|
26
|
+
# explicitly ensure that this project stays compatible to the stable channel
|
|
27
|
+
# and the standard build setup.
|
|
28
|
+
#
|
|
29
|
+
ci:
|
|
30
|
+
name: "Default - rust-${{ matrix.rust }}@${{ matrix.os }}"
|
|
31
|
+
|
|
32
|
+
strategy:
|
|
33
|
+
fail-fast: false
|
|
34
|
+
matrix:
|
|
35
|
+
os: ["ubuntu-latest"]
|
|
36
|
+
rust: ["nightly", "stable"]
|
|
37
|
+
|
|
38
|
+
runs-on: ${{ matrix.os }}
|
|
39
|
+
|
|
40
|
+
steps:
|
|
41
|
+
- name: "Fetch Sources"
|
|
42
|
+
uses: actions/checkout@v3
|
|
43
|
+
- name: "Install Rust Components"
|
|
44
|
+
run: rustup default "${{ matrix.rust }}"
|
|
45
|
+
- name: "Build Project"
|
|
46
|
+
run: cargo build --verbose --all-targets
|
|
47
|
+
- name: "Run Tests"
|
|
48
|
+
run: cargo test --verbose
|
|
49
|
+
|
|
50
|
+
#
|
|
51
|
+
# Cross-Compilation to UEFI Target
|
|
52
|
+
#
|
|
53
|
+
# This cross-compiles all sources (including the examples) for native UEFI
|
|
54
|
+
# targets. This test ensures that we can actually compile for our main target
|
|
55
|
+
# platforms.
|
|
56
|
+
#
|
|
57
|
+
ci-cross:
|
|
58
|
+
name: "Cross-Compilation - ${{ matrix.target }}/rust-${{ matrix.rust }}@${{ matrix.os }}"
|
|
59
|
+
|
|
60
|
+
strategy:
|
|
61
|
+
fail-fast: false
|
|
62
|
+
matrix:
|
|
63
|
+
os: ["ubuntu-latest"]
|
|
64
|
+
rust: ["nightly", "stable"]
|
|
65
|
+
target:
|
|
66
|
+
- "aarch64-unknown-uefi"
|
|
67
|
+
- "i686-unknown-uefi"
|
|
68
|
+
- "x86_64-unknown-uefi"
|
|
69
|
+
|
|
70
|
+
runs-on: ${{ matrix.os }}
|
|
71
|
+
|
|
72
|
+
steps:
|
|
73
|
+
- name: "Fetch Sources"
|
|
74
|
+
uses: actions/checkout@v3
|
|
75
|
+
- name: "Install Rust Components"
|
|
76
|
+
run: |
|
|
77
|
+
rustup default "${{ matrix.rust }}"
|
|
78
|
+
rustup target add --toolchain "${{ matrix.rust }}" "${{ matrix.target }}"
|
|
79
|
+
- name: "Build Project"
|
|
80
|
+
run: |
|
|
81
|
+
cargo build \
|
|
82
|
+
--examples \
|
|
83
|
+
--features native \
|
|
84
|
+
--lib \
|
|
85
|
+
--target "${{ matrix.target }}" \
|
|
86
|
+
--verbose
|
|
87
|
+
|
|
88
|
+
#
|
|
89
|
+
# Bootstrap to UEFI Target
|
|
90
|
+
#
|
|
91
|
+
# This uses the `-Zbuild-std` feature to fully bootstrap a native UEFI target
|
|
92
|
+
# via cross-compilation. This currently requires a nightly compiler.
|
|
93
|
+
#
|
|
94
|
+
ci-bootstrap:
|
|
95
|
+
name: "Bootstrap - ${{ matrix.target }}/rust-${{ matrix.rust }}@${{ matrix.os }}"
|
|
96
|
+
|
|
97
|
+
strategy:
|
|
98
|
+
fail-fast: false
|
|
99
|
+
matrix:
|
|
100
|
+
os: ["ubuntu-latest"]
|
|
101
|
+
rust: ["nightly"]
|
|
102
|
+
target:
|
|
103
|
+
- "aarch64-unknown-uefi"
|
|
104
|
+
- "i686-unknown-uefi"
|
|
105
|
+
- "x86_64-unknown-uefi"
|
|
106
|
+
|
|
107
|
+
runs-on: ${{ matrix.os }}
|
|
108
|
+
|
|
109
|
+
steps:
|
|
110
|
+
- name: "Fetch Sources"
|
|
111
|
+
uses: actions/checkout@v3
|
|
112
|
+
- name: "Install Rust Components"
|
|
113
|
+
run: |
|
|
114
|
+
rustup default "${{ matrix.rust }}"
|
|
115
|
+
rustup component add --toolchain "${{ matrix.rust }}" rust-src
|
|
116
|
+
- name: "Build Project"
|
|
117
|
+
run: |
|
|
118
|
+
cargo build \
|
|
119
|
+
-Zbuild-std=core,compiler_builtins,alloc \
|
|
120
|
+
-Zbuild-std-features=compiler-builtins-mem \
|
|
121
|
+
--examples \
|
|
122
|
+
--features native \
|
|
123
|
+
--lib \
|
|
124
|
+
--target "${{ matrix.target }}" \
|
|
125
|
+
--verbose
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
LICENSE:
|
|
2
|
+
This project is triple-licensed under the MIT License, the Apache
|
|
3
|
+
License, Version 2.0, and the GNU Lesser General Public License,
|
|
4
|
+
Version 2.1+.
|
|
5
|
+
|
|
6
|
+
AUTHORS-MIT:
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
8
|
+
copy of this software and associated documentation files (the
|
|
9
|
+
"Software"), to deal in the Software without restriction, including
|
|
10
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
11
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
12
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
13
|
+
the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included
|
|
16
|
+
in all copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
19
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
20
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
21
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
22
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
23
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
24
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
25
|
+
|
|
26
|
+
AUTHORS-ASL:
|
|
27
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
28
|
+
you may not use this file except in compliance with the License.
|
|
29
|
+
You may obtain a copy of the License at
|
|
30
|
+
|
|
31
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
32
|
+
|
|
33
|
+
Unless required by applicable law or agreed to in writing, software
|
|
34
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
35
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
36
|
+
See the License for the specific language governing permissions and
|
|
37
|
+
limitations under the License.
|
|
38
|
+
|
|
39
|
+
AUTHORS-LGPL:
|
|
40
|
+
This program is free software; you can redistribute it and/or modify it
|
|
41
|
+
under the terms of the GNU Lesser General Public License as published
|
|
42
|
+
by the Free Software Foundation; either version 2.1 of the License, or
|
|
43
|
+
(at your option) any later version.
|
|
44
|
+
|
|
45
|
+
This program is distributed in the hope that it will be useful, but
|
|
46
|
+
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
47
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
48
|
+
Lesser General Public License for more details.
|
|
49
|
+
|
|
50
|
+
You should have received a copy of the GNU Lesser General Public License
|
|
51
|
+
along with this program; If not, see <http://www.gnu.org/licenses/>.
|
|
52
|
+
|
|
53
|
+
COPYRIGHT: (ordered alphabetically)
|
|
54
|
+
Copyright (C) 2017-2023 Red Hat, Inc.
|
|
55
|
+
Copyright (C) 2019-2023 Microsoft Corporation
|
|
56
|
+
Copyright (C) 2022-2023 David Rheinsberg
|
|
57
|
+
|
|
58
|
+
AUTHORS: (ordered alphabetically)
|
|
59
|
+
Alex James <theracermaster@gmail.com>
|
|
60
|
+
Ayush Singh <ayushsingh1325@gmail.com>
|
|
61
|
+
Boris-Chengbiao Zhou <bobo1239@web.de>
|
|
62
|
+
Bret Barkelew <bret@corthon.com>
|
|
63
|
+
Christopher Zurcher <christopher.zurcher@microsoft.com>
|
|
64
|
+
David Rheinsberg <david@readahead.eu>
|
|
65
|
+
Dmitry Mostovenko <trueberserker@gmail.com>
|
|
66
|
+
Hiroki Tokunaga <tokusan441@gmail.com>
|
|
67
|
+
Joe Richey <joerichey@google.com>
|
|
68
|
+
John Schock <joschock@microsoft.com>
|
|
69
|
+
Michael Kubacki <michael.kubacki@microsoft.com>
|
|
70
|
+
Oliver Smith-Denny <osde@microsoft.com>
|
|
71
|
+
Richard Wiedenhöft <richard@wiedenhoeft.xyz>
|
|
72
|
+
Rob Bradford <robert.bradford@intel.com>, <rbradford@rivosinc.com>
|
|
73
|
+
Tom Gundersen <teg@jklm.no>
|
|
74
|
+
Trevor Gross <tmgross@umich.edu>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 3
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "r-efi"
|
|
7
|
+
version = "5.3.0"
|
|
8
|
+
dependencies = [
|
|
9
|
+
"rustc-std-workspace-core",
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
[[package]]
|
|
13
|
+
name = "rustc-std-workspace-core"
|
|
14
|
+
version = "1.0.1"
|
|
15
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
16
|
+
checksum = "aa9c45b374136f52f2d6311062c7146bff20fec063c3f5d46a410bd937746955"
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
2
|
+
#
|
|
3
|
+
# When uploading crates to the registry Cargo will automatically
|
|
4
|
+
# "normalize" Cargo.toml files for maximal compatibility
|
|
5
|
+
# with all versions of Cargo and also rewrite `path` dependencies
|
|
6
|
+
# to registry (e.g., crates.io) dependencies.
|
|
7
|
+
#
|
|
8
|
+
# If you are reading this file be aware that the original Cargo.toml
|
|
9
|
+
# will likely look very different (and much more reasonable).
|
|
10
|
+
# See Cargo.toml.orig for the original contents.
|
|
11
|
+
|
|
12
|
+
[package]
|
|
13
|
+
edition = "2018"
|
|
14
|
+
rust-version = "1.68"
|
|
15
|
+
name = "r-efi"
|
|
16
|
+
version = "5.3.0"
|
|
17
|
+
build = false
|
|
18
|
+
autolib = false
|
|
19
|
+
autobins = false
|
|
20
|
+
autoexamples = false
|
|
21
|
+
autotests = false
|
|
22
|
+
autobenches = false
|
|
23
|
+
description = "UEFI Reference Specification Protocol Constants and Definitions"
|
|
24
|
+
homepage = "https://github.com/r-efi/r-efi/wiki"
|
|
25
|
+
readme = "README.md"
|
|
26
|
+
keywords = [
|
|
27
|
+
"boot",
|
|
28
|
+
"efi",
|
|
29
|
+
"firmware",
|
|
30
|
+
"specification",
|
|
31
|
+
"uefi",
|
|
32
|
+
]
|
|
33
|
+
categories = [
|
|
34
|
+
"embedded",
|
|
35
|
+
"hardware-support",
|
|
36
|
+
"no-std",
|
|
37
|
+
"os",
|
|
38
|
+
]
|
|
39
|
+
license = "MIT OR Apache-2.0 OR LGPL-2.1-or-later"
|
|
40
|
+
repository = "https://github.com/r-efi/r-efi"
|
|
41
|
+
|
|
42
|
+
[features]
|
|
43
|
+
efiapi = []
|
|
44
|
+
examples = ["native"]
|
|
45
|
+
native = []
|
|
46
|
+
rustc-dep-of-std = ["core"]
|
|
47
|
+
|
|
48
|
+
[lib]
|
|
49
|
+
name = "r_efi"
|
|
50
|
+
path = "src/lib.rs"
|
|
51
|
+
|
|
52
|
+
[[example]]
|
|
53
|
+
name = "freestanding"
|
|
54
|
+
path = "examples/freestanding.rs"
|
|
55
|
+
required-features = ["native"]
|
|
56
|
+
|
|
57
|
+
[[example]]
|
|
58
|
+
name = "gop-query"
|
|
59
|
+
path = "examples/gop-query.rs"
|
|
60
|
+
required-features = ["native"]
|
|
61
|
+
|
|
62
|
+
[[example]]
|
|
63
|
+
name = "hello-world"
|
|
64
|
+
path = "examples/hello-world.rs"
|
|
65
|
+
required-features = ["native"]
|
|
66
|
+
|
|
67
|
+
[dependencies.core]
|
|
68
|
+
version = "1.0.0"
|
|
69
|
+
optional = true
|
|
70
|
+
package = "rustc-std-workspace-core"
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "r-efi"
|
|
3
|
+
version = "5.3.0"
|
|
4
|
+
|
|
5
|
+
categories = [
|
|
6
|
+
"embedded",
|
|
7
|
+
"hardware-support",
|
|
8
|
+
"no-std",
|
|
9
|
+
"os",
|
|
10
|
+
]
|
|
11
|
+
description = "UEFI Reference Specification Protocol Constants and Definitions"
|
|
12
|
+
edition = "2018"
|
|
13
|
+
homepage = "https://github.com/r-efi/r-efi/wiki"
|
|
14
|
+
keywords = [
|
|
15
|
+
"boot",
|
|
16
|
+
"efi",
|
|
17
|
+
"firmware",
|
|
18
|
+
"specification",
|
|
19
|
+
"uefi",
|
|
20
|
+
]
|
|
21
|
+
license = "MIT OR Apache-2.0 OR LGPL-2.1-or-later"
|
|
22
|
+
readme = "README.md"
|
|
23
|
+
repository = "https://github.com/r-efi/r-efi"
|
|
24
|
+
rust-version = "1.68"
|
|
25
|
+
|
|
26
|
+
[dependencies]
|
|
27
|
+
# Required setup to build as part of rustc.
|
|
28
|
+
core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' }
|
|
29
|
+
|
|
30
|
+
[features]
|
|
31
|
+
# No-op for backwards compatibility.
|
|
32
|
+
efiapi = []
|
|
33
|
+
# Maps to `native` for backwards compatibility.
|
|
34
|
+
examples = ['native']
|
|
35
|
+
# We feature-gate all native code, since it will not link correctly, unless you
|
|
36
|
+
# use a UEFI target configuration. To make `cargo test` work, we exclude all
|
|
37
|
+
# these from normal runs.
|
|
38
|
+
native = []
|
|
39
|
+
rustc-dep-of-std = ['core']
|
|
40
|
+
|
|
41
|
+
[[example]]
|
|
42
|
+
name = "freestanding"
|
|
43
|
+
required-features = ["native"]
|
|
44
|
+
|
|
45
|
+
[[example]]
|
|
46
|
+
name = "gop-query"
|
|
47
|
+
required-features = ["native"]
|
|
48
|
+
|
|
49
|
+
[[example]]
|
|
50
|
+
name = "hello-world"
|
|
51
|
+
required-features = ["native"]
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Maintenance Makefile
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
# Enforce bash with fatal errors.
|
|
6
|
+
SHELL := /bin/bash -eo pipefail
|
|
7
|
+
|
|
8
|
+
# Keep intermediates around on failures for better caching.
|
|
9
|
+
.SECONDARY:
|
|
10
|
+
|
|
11
|
+
# Default build and source directories.
|
|
12
|
+
BUILDDIR ?= ./build
|
|
13
|
+
SRCDIR ?= .
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
# Target: help
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
.PHONY: help
|
|
20
|
+
help:
|
|
21
|
+
@# 80-width marker:
|
|
22
|
+
@# 01234567012345670123456701234567012345670123456701234567012345670123456701234567
|
|
23
|
+
@echo "make [TARGETS...]"
|
|
24
|
+
@echo
|
|
25
|
+
@echo "The following targets are provided by this maintenance makefile:"
|
|
26
|
+
@echo
|
|
27
|
+
@echo " help: Print this usage information"
|
|
28
|
+
@echo
|
|
29
|
+
@echo " publish-github: Publish a release to GitHub"
|
|
30
|
+
|
|
31
|
+
#
|
|
32
|
+
# Target: BUILDDIR
|
|
33
|
+
#
|
|
34
|
+
|
|
35
|
+
$(BUILDDIR)/:
|
|
36
|
+
mkdir -p "$@"
|
|
37
|
+
|
|
38
|
+
$(BUILDDIR)/%/:
|
|
39
|
+
mkdir -p "$@"
|
|
40
|
+
|
|
41
|
+
#
|
|
42
|
+
# Target: FORCE
|
|
43
|
+
#
|
|
44
|
+
# Used as alternative to `.PHONY` if the target is not fixed.
|
|
45
|
+
#
|
|
46
|
+
|
|
47
|
+
.PHONY: FORCE
|
|
48
|
+
FORCE:
|
|
49
|
+
|
|
50
|
+
#
|
|
51
|
+
# Target: publish-*
|
|
52
|
+
#
|
|
53
|
+
|
|
54
|
+
PUBLISH_REPO ?= r-efi/r-efi
|
|
55
|
+
PUBLISH_VERSION ?=
|
|
56
|
+
|
|
57
|
+
define PUBLISH_RELNOTES_PY
|
|
58
|
+
with open('NEWS.md', 'r') as f:
|
|
59
|
+
notes = f.read().split("\n## CHANGES WITH ")[1:]
|
|
60
|
+
notes = dict(map(lambda v: (v[:v.find(":")], v), notes))
|
|
61
|
+
notes = notes["$(PUBLISH_VERSION)"].strip()
|
|
62
|
+
print(" # r-efi - UEFI Reference Specification Protocol Constants and Definitions\n")
|
|
63
|
+
print(" ## CHANGES WITH", notes)
|
|
64
|
+
endef
|
|
65
|
+
|
|
66
|
+
export PUBLISH_RELNOTES_PY
|
|
67
|
+
export PUBLISH_REPO
|
|
68
|
+
export PUBLISH_VERSION
|
|
69
|
+
|
|
70
|
+
.PHONY: publish-github
|
|
71
|
+
publish-github:
|
|
72
|
+
test ! -z "$${PUBLISH_REPO}"
|
|
73
|
+
test ! -z "$${PUBLISH_VERSION}"
|
|
74
|
+
python \
|
|
75
|
+
- \
|
|
76
|
+
<<<"$${PUBLISH_RELNOTES_PY}" \
|
|
77
|
+
| gh \
|
|
78
|
+
release \
|
|
79
|
+
--repo "$${PUBLISH_REPO}" \
|
|
80
|
+
create \
|
|
81
|
+
--verify-tag \
|
|
82
|
+
--title \
|
|
83
|
+
"r-efi-$${PUBLISH_VERSION}" \
|
|
84
|
+
--notes-file - \
|
|
85
|
+
"v$${PUBLISH_VERSION}"
|