Skip to content

Commit bd906f6

Browse files
committed
Add README and LICENCE.
1 parent 456e0fb commit bd906f6

File tree

4 files changed

+86
-0
lines changed

4 files changed

+86
-0
lines changed

LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2013, Sébastien Crozet
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
3. Neither the name of the author nor the names of its contributors may be used
15+
to endorse or promote products derived from this software without specific
16+
prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<p align="center">
2+
<img src="http://nphysics.org/img/logo_salva_full.svg" alt="crates.io">
3+
</p>
4+
<p align="center">
5+
<a href="https://discord.gg/vt9DJSW">
6+
<img src="https://img.shields.io/discord/507548572338880513.svg?logo=discord&colorB=7289DA">
7+
</a>
8+
<a href="https://crates.io/crates/salva2d">
9+
<img src="https://img.shields.io/crates/v/salva2d.svg?style=flat-square&label=crates.io%20(salva2d)" alt="crates.io (salva2d)">
10+
</a>
11+
<a href="https://crates.io/crates/salva3d">
12+
<img src="https://img.shields.io/crates/v/salva3d.svg?style=flat-square&label=crates.io%20(salva3d)" alt="crates.io (salva3d)">
13+
</a>
14+
<a href="https://travis-ci.org/rustsim/salva">
15+
<img src="https://travis-ci.org/rustsim/salva.svg?branch=master" alt="Build status">
16+
</a>
17+
</p>
18+
<p align = "center">
19+
<strong>
20+
<a href="http://nphysics.org">Users guide</a> | <a href="http://nphysics.org/rustdoc/salva2d/index.html">2D Documentation</a> | <a href="http://nphysics.org/rustdoc/salva3d/index.html">3D Documentation</a> | <a href="https://discourse.nphysics.org">Forum</a>
21+
</strong>
22+
</p>
23+
24+
-----
25+
26+
<p align = "center">
27+
 <i>Click one of those buttons if you wish to donate to support the development of</i> <b>salva</b>:
28+
</p>
29+
30+
<p align = "center">
31+
<a href="https://www.patreon.com/bePatron?u=7111380" ><img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Become a Patron!" /></a>
32+
&nbsp;&nbsp;&nbsp;&nbsp;
33+
<a href="https://liberapay.com/sebcrozet/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a>
34+
</p>

publish.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#! /bin/bash
2+
3+
tmp=$(mktemp -d)
4+
5+
echo "$tmp"
6+
7+
cp -r src "$tmp"/.
8+
cp -r LICENSE README.md "$tmp"/.
9+
10+
### Publish the 2D version.
11+
sed 's#\.\./\.\./src#src#g' build/salva2d/Cargo.toml > "$tmp"/Cargo.toml
12+
currdir=$(pwd)
13+
cd "$tmp" && cargo publish
14+
cd "$currdir" || exit
15+
16+
17+
### Publish the 3D version.
18+
sed 's#\.\./\.\./src#src#g' build/salva3d/Cargo.toml > "$tmp"/Cargo.toml
19+
cp -r LICENSE README.md "$tmp"/.
20+
cd "$tmp" && cargo publish
21+
22+
rm -rf "$tmp"

rustfmt.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
unstable_features = true
2+
indent_style = "Block"
3+
where_single_line = true

0 commit comments

Comments
 (0)