In the following all rings are assumed to be commutative and unitary.
Preliminaries:
For any topological ring $R$ we can form its completion $\widehat{R}$ by taking all Cauchy sequences modulo null sequences. This is again a ring and we can consider completion as a functor $\textbf{RingTop} \to \textbf{Ring}$.
If $R$ is even a linear topological ring - i.e. it admits a fundamental system of neighborhoods of 0 consisting of ideals, say $R \supseteq I_1 \supseteq I_2 \supseteq \dots$ - then $\widehat{R}$ carries a canonical linear topology given by $\widehat{R} \supseteq \widehat{I_1} \supseteq \widehat{I_2} \supseteq \dots$ which turns completion into a functor $\textbf{LRingTop} \to \textbf{LRingTop}$ between linear topological rings.
Question:
Is it possible to spare linearity and turn completion into a functor $\textbf{RingTop} \to \textbf{RingTop}$ in a canonical way which covers the above considerations and additionally has $\widehat{\mathbb{Q}} \cong \mathbb{R}$ as special case?
If not: is there a counterexample which illustrates the difficulties in defining a canonical topology on $\widehat{R}$ which turns completion into a functor in the non-linear case?
Thanks for any help!