Settings: actix.mode has no actix behaviour associated

Open
#387 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust
Domain
backend

Research direction

Start by reading the configuration structure and the ApplySettings entry point to confirm how actix.mode is parsed and ignored. The issue presents several alternative designs, so first establish which config ownership and behavior maintainers want; done means the chosen behavior is implemented consistently and its configuration effect is documented.

Written by the indexing model from the issue text.

Description

A-settings C-feature

Your issue may already be reported! Please search on the actix-extras issue tracker before creating one.

Expected Behavior

I expect that all of the settings under the "actix" table correspond to some actix behaviour.

Current Behavior

The config field "actix.mode" has no actix behaviour associated with it, and is ignored by ApplySettings.

Possible Solution

IMO having a mode config is very helpful, being a very common concept, so I suggest it is moved into the application part of the config structure, or another config section being created such as "common" for config that actix-settings provides but doesnt have any implemented behaviour.

Another alternative is for actix-settings to use this mode value to provide different defaults for prod vs dev, and document this.

Steps to Reproduce (for bugs)

Context

Your Environment

Dominant language
Rust
Stars
892
Forks
225
Avg merge
8h 57m
Merged PRs (30d)
33

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from actix/actix-extras

All issues in actix/actix-extras

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.