Giter Club home page Giter Club logo

rust-euler's Introduction

rust-euler

Welcome to rust-euler!

GitHub commit activity GitHub last commit GitHub Repo stars

Project layout

.
├── hello-world
│   ├── Cargo.lock
│   ├── Cargo.toml
│   ├── src
│   │   └── main.rs
│   └── target
│       ├── CACHEDIR.TAG
│       └── debug
│           ├── build
│           ├── deps
│           │   ├── hello_world-99ed12927bc23265
│           │   └── hello_world-99ed12927bc23265.d
│           ├── examples
│           ├── hello-world
│           ├── hello-world.d
│           └── incremental
│               └── hello_world-356t5tm55t73o
│                   ├── s-gwdpsicqq0-7i3zl2-224kkz2zegjy1l2z5c6uqy6yz
│                   │   ├── 1f68qjuhijjmc5i7.o
│                   │   ├── 3sbtbb5h8ru55pik.o
│                   │   ├── 3wqjr936igavuvx1.o
│                   │   ├── 3xa1dh1eeps7pkl3.o
│                   │   ├── 4rwjz7g0puotc3i.o
│                   │   ├── 541blf7fzejf93ta.o
│                   │   ├── dep-graph.bin
│                   │   ├── query-cache.bin
│                   │   └── work-products.bin
│                   └── s-gwdpsicqq0-7i3zl2.lock
└── README.md

Execution/Testing

  1. Download the zip file or clone this repository.
  2. The source code is in the .rs file, usually with the path <projectName>/src/main.rs. The pre-built executable included in <projectName>/target/debug/<executable>. On linux, cd to the directory with the executable and run the code with:
$ ./<executable name>

For example, in the project hello-world, main.rs compiled with rustc (managed by cargo) will output a file called hello-world which is the executable. These are already included in the repository. You would then:

```
$ cd ./path/to/rust-euler/euler1/
$ ls
Cargo.lock Cargo.toml src target
$ cd ./target/
$ ls
CACHEDIR.TAG debug
$ cd ./debug/
$ ls
build deps examples hello-world hello-world.d incremental
$ ./hello-world
```

to run the code. Alternatively, if you know how to, cargo run should do the job if you clone and setup the repository correctly. Note the space is included at the start of the command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.