···11+{
22+ "blurb": "Write a function to determine if a list is a sublist of another list.",
33+ "authors": [
44+ "EduardoBautista"
55+ ],
66+ "contributors": [
77+ "ashleygwilliams",
88+ "coriolinus",
99+ "cwhakes",
1010+ "eddyp",
1111+ "EduardoBautista",
1212+ "efx",
1313+ "ErikSchierboom",
1414+ "IanWhitney",
1515+ "kytrinyx",
1616+ "lutostag",
1717+ "mkantor",
1818+ "nfiles",
1919+ "petertseng",
2020+ "rofrol",
2121+ "stringparser",
2222+ "xakon",
2323+ "ZapAnton"
2424+ ],
2525+ "files": {
2626+ "solution": [
2727+ "src/lib.rs"
2828+ ],
2929+ "test": [
3030+ "tests/sublist.rs"
3131+ ],
3232+ "example": [
3333+ ".meta/example.rs"
3434+ ]
3535+ }
3636+}
+8
rust/sublist/.gitignore
···11+# Generated by Cargo
22+# will have compiled files and executables
33+/target/
44+**/*.rs.bk
55+66+# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
77+# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock
88+Cargo.lock
···11+# Help
22+33+## Running the tests
44+55+Execute the tests with:
66+77+```bash
88+$ cargo test
99+```
1010+1111+All but the first test have been ignored. After you get the first test to
1212+pass, open the tests source file which is located in the `tests` directory
1313+and remove the `#[ignore]` flag from the next test and get the tests to pass
1414+again. Each separate test is a function with `#[test]` flag above it.
1515+Continue, until you pass every test.
1616+1717+If you wish to run _only ignored_ tests without editing the tests source file, use:
1818+1919+```bash
2020+$ cargo test -- --ignored
2121+```
2222+2323+If you are using Rust 1.51 or later, you can run _all_ tests with
2424+2525+```bash
2626+$ cargo test -- --include-ignored
2727+```
2828+2929+To run a specific test, for example `some_test`, you can use:
3030+3131+```bash
3232+$ cargo test some_test
3333+```
3434+3535+If the specific test is ignored, use:
3636+3737+```bash
3838+$ cargo test some_test -- --ignored
3939+```
4040+4141+To learn more about Rust tests refer to the online [test documentation][rust-tests].
4242+4343+[rust-tests]: https://doc.rust-lang.org/book/ch11-02-running-tests.html
4444+4545+## Submitting your solution
4646+4747+You can submit your solution using the `exercism submit src/lib.rs` command.
4848+This command will upload your solution to the Exercism website and print the solution page's URL.
4949+5050+It's possible to submit an incomplete solution which allows you to:
5151+5252+- See how others have completed the exercise
5353+- Request help from a mentor
5454+5555+## Need to get help?
5656+5757+If you'd like help solving the exercise, check the following pages:
5858+5959+- The [Rust track's documentation](https://exercism.org/docs/tracks/rust)
6060+- [Exercism's support channel on gitter](https://gitter.im/exercism/support)
6161+- The [Frequently Asked Questions](https://exercism.org/docs/using/faqs)
6262+6363+Should those resources not suffice, you could submit your (incomplete) solution to request mentoring.
6464+6565+## Rust Installation
6666+6767+Refer to the [exercism help page][help-page] for Rust installation and learning
6868+resources.
6969+7070+## Submitting the solution
7171+7272+Generally you should submit all files in which you implemented your solution (`src/lib.rs` in most cases). If you are using any external crates, please consider submitting the `Cargo.toml` file. This will make the review process faster and clearer.
7373+7474+## Feedback, Issues, Pull Requests
7575+7676+The GitHub [track repository][github] is the home for all of the Rust exercises. If you have feedback about an exercise, or want to help implement new exercises, head over there and create an issue. Members of the rust track team are happy to help!
7777+7878+If you want to know more about Exercism, take a look at the [contribution guide].
7979+8080+## Submitting Incomplete Solutions
8181+It's possible to submit an incomplete solution so you can see how others have completed the exercise.
8282+8383+[help-page]: https://exercism.io/tracks/rust/learning
8484+[github]: https://github.com/exercism/rust
8585+[contribution guide]: https://exercism.io/docs/community/contributors
+49
rust/sublist/README.md
···11+# Sublist
22+33+Welcome to Sublist on Exercism's Rust Track.
44+If you need help running the tests or submitting your code, check out `HELP.md`.
55+66+## Instructions
77+88+Given two lists determine if the first list is contained within the second
99+list, if the second list is contained within the first list, if both lists are
1010+contained within each other or if none of these are true.
1111+1212+Specifically, a list A is a sublist of list B if by dropping 0 or more elements
1313+from the front of B and 0 or more elements from the back of B you get a list
1414+that's completely equal to A.
1515+1616+Examples:
1717+1818+ * A = [1, 2, 3], B = [1, 2, 3, 4, 5], A is a sublist of B
1919+ * A = [3, 4, 5], B = [1, 2, 3, 4, 5], A is a sublist of B
2020+ * A = [3, 4], B = [1, 2, 3, 4, 5], A is a sublist of B
2121+ * A = [1, 2, 3], B = [1, 2, 3], A is equal to B
2222+ * A = [1, 2, 3, 4, 5], B = [2, 3, 4], A is a superlist of B
2323+ * A = [1, 2, 4], B = [1, 2, 3, 4, 5], A is not a superlist of, sublist of or equal to B
2424+2525+## Source
2626+2727+### Created by
2828+2929+- @EduardoBautista
3030+3131+### Contributed to by
3232+3333+- @ashleygwilliams
3434+- @coriolinus
3535+- @cwhakes
3636+- @eddyp
3737+- @EduardoBautista
3838+- @efx
3939+- @ErikSchierboom
4040+- @IanWhitney
4141+- @kytrinyx
4242+- @lutostag
4343+- @mkantor
4444+- @nfiles
4545+- @petertseng
4646+- @rofrol
4747+- @stringparser
4848+- @xakon
4949+- @ZapAnton