From 820e17343c5fa5a94a51745381bf68dfb4ee3993 Mon Sep 17 00:00:00 2001 From: manunio Date: Thu, 6 Oct 2022 20:22:13 +0530 Subject: [PATCH] ron: initial integration (#8676) Hi, [RON](https://github.com/ron-rs/ron) is a simple readable data serialization format that looks similar to Rust syntax. It's designed to support all of [Serde's data model](https://serde.rs/data-model.html), so structs, enums, tuples, arrays, generic maps, and primitive values. - It has 3 million+ downloads as per [crates.io](https://crates.io/crates/ron). - It's being used by projects like: - [bevy](https://github.com/bevyengine/bevy) - [egui](https://github.com/emilk/egui) - [Fyrox](https://github.com/FyroxEngine/Fyrox) - [orbtk](https://github.com/redox-os/orbtk) - [wgpu](https://github.com/gfx-rs/wgpu) - [gitui](https://github.com/extrawurst/gitui) - [insta](https://github.com/mitsuhiko/insta) - [serde_with](https://github.com/jonasbb/serde_with) --- projects/ron/Dockerfile | 21 +++++++++++++++++++++ projects/ron/build.sh | 19 +++++++++++++++++++ projects/ron/project.yaml | 12 ++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 projects/ron/Dockerfile create mode 100755 projects/ron/build.sh create mode 100644 projects/ron/project.yaml diff --git a/projects/ron/Dockerfile b/projects/ron/Dockerfile new file mode 100644 index 000000000..3ab717ed3 --- /dev/null +++ b/projects/ron/Dockerfile @@ -0,0 +1,21 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +FROM gcr.io/oss-fuzz-base/base-builder-rust +RUN apt-get update && apt-get install -y make autoconf automake libtool +RUN git clone --depth 1 https://github.com/ron-rs/ron ron +WORKDIR ron +COPY build.sh $SRC/ diff --git a/projects/ron/build.sh b/projects/ron/build.sh new file mode 100755 index 000000000..abb554c31 --- /dev/null +++ b/projects/ron/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash -eu +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +cargo fuzz build -O +cp fuzz/target/x86_64-unknown-linux-gnu/release/from_str $OUT/ diff --git a/projects/ron/project.yaml b/projects/ron/project.yaml new file mode 100644 index 000000000..c3c68fa11 --- /dev/null +++ b/projects/ron/project.yaml @@ -0,0 +1,12 @@ +homepage: "https://github.com/ron-rs/ron" +language: rust +main_repo: "https://github.com/ron-rs/ron" +primary_contact: "juniper.tyree@gmail.com" +auto_ccs: + - torkleyy@gmail.com +fuzzing_engines: + - libfuzzer +sanitizers: + - address +vendor_ccs: + - maxnair.dev@gmail.com