Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
chore: rename fx-tiles -> contile (#14)
Browse files Browse the repository at this point in the history
* chore: rename fx-tiles -> contile

update rand_core per RUSTSEC-2021-0023

Closes #13
  • Loading branch information
pjenvey authored Feb 17, 2021
1 parent 04d7e5c commit f0f2662
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 47 deletions.
74 changes: 37 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "fx_tiles"
name = "contile"
version = "0.1.0"
authors = [
"Philip Jenvey <pjenvey@underboss.org>",
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM rust:1.49 as builder
ADD . /app
WORKDIR /app
# Change this to be your application's name
ARG APPNAME=fx_tiles
ARG APPNAME=contile
# Make sure that this matches in .travis.yml
# ARG RUST_TOOLCHAIN=nightly
RUN \
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
environment:
#MYSQL_RANDOM_ROOT_PASSWORD: yes
MYSQL_ROOT_PASSWORD: random
MYSQL_DATABASE: fx_tiles
MYSQL_DATABASE: contile
MYSQL_USER: test
MYSQL_PASSWORD: test

Expand All @@ -23,7 +23,7 @@ services:
depends_on:
- db
environment:
DATABASE_URL: mysql://test:test@db:3306/fx_tiles
DATABASE_URL: mysql://test:test@db:3306/contile

volumes:
db_data:
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use logging::init_logging;
use serde::Deserialize;

const USAGE: &str = "
Usage: fx_tiles [options]
Usage: contile [options]
Options:
-h, --help Show this message.
Expand All @@ -20,7 +20,7 @@ struct Args {
flag_config: Option<String>,
}

use fx_tiles::{logging, server, settings};
use contile::{logging, server, settings};

#[actix_web::main]
async fn main() -> Result<(), Box<dyn Error>> {
Expand Down
2 changes: 1 addition & 1 deletion src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::collections::HashMap;
use config::{Config, ConfigError, Environment, File};
use serde::Deserialize;

static PREFIX: &str = "fx_tiles";
static PREFIX: &str = "contile";

static DEFAULT_PORT: u16 = 8000;

Expand Down
3 changes: 1 addition & 2 deletions src/web/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ pub async fn get_tiles(
///
/// - Returns None for tiles that shouldn't be shown to the client
/// - Modifies tiles for output to the client (adding additional fields, etc.)
#[allow(unused_mut)]
#[allow(clippy::clippy::unnecessary_wraps)]
#[allow(clippy::unnecessary_wraps, unused_mut)]
fn filter_and_process(mut tile: AdmTile) -> Option<AdmTile> {
//if !state.valid_tile(tile.name) {
// return None;
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"build": "TBD",
"commit": "TBD",
"source": "https://github.com/mozilla-services/fx-tiles",
"source": "https://github.com/mozilla-services/contile",
"version": "TBD"
}

0 comments on commit f0f2662

Please sign in to comment.